HCSVLAB-414: Fix bug removing the old solr core