Clean filtered objects if the entire batch was filtered away, to prevent memory allocation issue.