#3822 - G7 Space Photos page crashes when ongoing rental card is not assigned to any person

When a G7 Space has ongoing rental started by a card that has person_id: nil (card is not assigned to a person) and you try to access G7 Space Photo page (g7/space_photos/:id) where this rental should be shown, it will crash:

[a4f3f94d-0657-4c13-adf9-ee0b9c4bad15] ActionView::Template::Error (undefined method `name' for nil:NilClass):
[a4f3f94d-0657-4c13-adf9-ee0b9c4bad15]      5: 
[a4f3f94d-0657-4c13-adf9-ee0b9c4bad15]      6:   - if rental
[a4f3f94d-0657-4c13-adf9-ee0b9c4bad15]      7:     ul
[a4f3f94d-0657-4c13-adf9-ee0b9c4bad15]      8:       li = "#{rental.person.name} (#{rental.card.card_model.name} #{rental.card.number})"
[a4f3f94d-0657-4c13-adf9-ee0b9c4bad15]      9:       li = t('modern.owners.locations.lockers.locker.status.rental_id', id: rental.id)
[a4f3f94d-0657-4c13-adf9-ee0b9c4bad15]     10:       li = t('modern.owners.locations.lockers.locker.status.started_at', at: formatted_time_diff(rental.rental_start_time, time_zone: current_person.time_zone_obj, format: '%I:%M%P %-m/%d/%y %Z'))
[a4f3f94d-0657-4c13-adf9-ee0b9c4bad15]   
[a4f3f94d-0657-4c13-adf9-ee0b9c4bad15] app/views/g7/space_photos/show/_space_status.html.slim:8
[a4f3f94d-0657-4c13-adf9-ee0b9c4bad15] app/views/g7/space_photos/show/_space_status.html.slim:2
[a4f3f94d-0657-4c13-adf9-ee0b9c4bad15] app/views/g7/space_photos/show.html.slim:12
[a4f3f94d-0657-4c13-adf9-ee0b9c4bad15] app/controllers/application_controller.rb:45:in `process_action'

ToDo: use card.owner_name (instead of card.person.name) in app/views/g7/space_photos/show/_space_status.html.slim (there may be also other instances of this issue)

Znovu načíst