EZP-23037: Location search: handle both Subtree and PermissionSubtree criterions