Improved error handling when Solr returns HTML doc