fixed issue where topic searching with no query would cause Solr to throw exception