Fix HashAggregation infinite loop during multiple partial agg flushes