Fix bug with special handling for PHOTO.

$property was not being assigned before checking it.