[trunk] Fixed invalid check in in tiff reading method (fixes issue 449)