Fix issue where grouping without an aggregate value results in empty results

When you do not have an aggregate value (like `SUM(whatever)`) but are aggregating, no results were previously returned. This is now fixed.