Set Solr settings only if the modules are enabled
Disabled search related modules (solr) - they are annoying. Enabled devel modules by default