DRILL-1177: Check if setsafe() succeeded while performing HashAggregation