RAZ-2879: Error in Folder API getfolders-method
- Fixed issue with query throwing error if collection folder has no sub folders