[BEAM-1416] The export of transect pixels from a reprojected data product results in an empty file
(cherry picked from commit 028545f)