TIFF: correct for invalid tile heights

See #435.  If the stored tile height is less than 0, then we assume that the real tile height is the same as the image height.