[7.0.x] ISPN-5011 CacheManager not stopping when search factory not initialized

https://issues.jboss.org/browse/ISPN-5011