avcodec/tiff: Check bpp/bppcount for 0