Avoid OOB exception parsing minimal exif segment.

Fixes #286