Fixed GROUP BY Crash in Distributed Aggregation Memory Efficient Mode

Fixed a crash of GROUP BY when using distributed_aggregation_memory_efficient=1.