CZI: do not overwrite SizeT if SizeT is equal to the number of planes

Fixes #12003.