Allow GROUP BY with no results. Fix MB-12531.