fix NPE in solr search