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