EZP-23203: Improve handling of unexpected Solr response

Sometimes Solr answers with such a response :

array(
  'responseHeader'=>array(
    'status'=>0,
    'QTime'=>1),
  'response'=>null,
  'interestingTerms'=>array())

So add some sanity checks to avoid segfault.