CS-5430: Returns empty result for empty query parameter instead of solr ...

...connection error

Also add nicer error handling in combination with templates