Fix for issue [BEAM-1459] Allow aggregating pixel values even if not all pixels of the window are valid