Have a check for SolrUrl before it curl to clear solr.