photo-dialog: check that attributes exist before accessing them
This fixes a flood of criticals that have been occurring since:
We request these attributes from GFileEnumerator, but the request is not a guarantee and it's programmer error to use them without checking for them first.