OME-TIFF: prevent AIOOB exception when writing tiles to an OME-TIFF