NXP-10254 fix folders filtering

https://jira.nuxeo.com/browse/NXP-10254

Filtering should apply to children and not to the parent for the method getFolders().