DRILL-1322: Fix memory leak when all records in a batch are filtered