v.22.7Bug Fix

Fix use-after-free in Map combinator for aggregate functions

Fix use-after-free for aggregate functions with Map combinator that leads to incorrect result. #38748 (Azat Khuzhin).