fix NPE if EXIF data is not correctly formatted