Fixes #2126 NPE when activating KarafContainerRegistration