CHG: Improve robustness of exif parser