Clean filtered objects if the entire batch was filtered away, to prevent memory allocation issue.
Merge pull request #737 from jaymecd/clean_filtered

Doctrine provider: memory allocation caused by "entire batch was filtered away"