RepositoryService: searchResources returns empty SearchResourcesResult with 0 counts instead of null. Fixes #36050