LPS-41870

This is needed to fix subfolder query for CMIS, Documentum etc. Will send Documentum plugin changes in a separeate pull request. Please include in 6.2 branch.