Check if solr master host is defined before using it