Fixing findByMimeTypeAndParent.
Removing useless code.
Merge pull request #499 from ngodfraind/bugfix

Bugfix