TIFF: a few more checks for seeking/reading beyond the end of the file