**Describe the bug**
```
SELECT number % 100 AS k, sumArray(emptyArrayUInt8()) AS v FROM numbers(10) GROUP BY k
```
Fails under ASan.

for (size_t bucket = 0; bucket < Method::Data::NUM_BUCKETS; ++bucket)
        {
            if (method.data.impls[bucket].empty())
                continue;
            tasks[bucket] = std::packaged_task<Block()>([group = CurrentThread::getGroup(), bucket, &converter]{ return converter(bucket, group); });
            if (thread_pool)
                thread_pool->scheduleOrThrowOnError([bucket, &tasks] { tasks[bucket](); });
            else
                tasks[bucket]();
        }
    }
    catch (...)
    {
        
        if (thread_pool)
            thread_pool->wait();
        throw;
    }
    if (thread_pool)
        thread_pool->wait();
    BlocksList blocks;
    for (auto & task : tasks)
    {
        if (!task.valid())
            continue;
        blocks.emplace_back(task.get_future().get());
    }
    return blocks;
}
BlocksList Aggregator::convertToBlocks(AggregatedDataVariants & data_variants, bool final, size_t max_threads) const