Fixes a memory leak when using MongoDB
By clearing on all objectManager
Remove unwanted line
Merge pull request #1128 from akeneo/fix/writer_mem_leak

Fix writer mem leak