tiff: Handle incorrect 0 resolution found in TIFF files

https://bugzilla.gnome.org/show_bug.cgi?id=646414