v.21.9Bug Fix

Fix Distributed Queries with Zero Shards and Aggregation

Fix distributed queries with zero shards and aggregation. #27427 (Azat Khuzhin).