ECMS-4837 RepositoryException when advanced search with category - Process with the case of no category exist