Avoid potential NPE
CAMEL-6396: camel-solr should shutdown solr servers when no longer in use.