FELIX-4011 fix a lot of potential NPEs during bundle shutdown when BundleComponentActivator and BundleContext may not be available