fix NPE in BundleContextHistoryManagerTest