sometimes device information is missing from photo file
correct logic for detecting no device information