Fix TIFF export filter to flatten images with group layers
We can still save into TIFF if we flatten the image
BUG:404204