Fix an OverflowError due to corrupt EXIF data