[ASTERIXDB-3007][COMP] Fix ConsolidateWindowOperatorsRule