Potentially fixes a crash with showing images that have broken metadata.
Merge pull request #1122 from iGemini/master

Potentially fixes a crash with showing images that have broken metadata.