Update SolrSearch.php to fix Showing Facets on template

This is an fix to the issue https://github.com/nyeholt/silverstripe-solr/issues/25. i was getting this error when showing facets on the template. After making the above changes it worked to me.