test_file_tiff: skip JPEG-in-TIFF tests if libjpeg is not available

The improvement of tiff-related test code shown that one of the tiff tests relies on jpeg support as well. This commit fixes it to be skipped when jpeg is disabled.