Can't access photo attributes if photo doesn't exist

Removed logging call
Merge branch 'hotfix-photo-error'