Fix "None" problem when searching an solr is active.

https://github.com/4teamwork/izug.organisation/isues/664
4teamwork/izug.organisation#664