Adapt to BundleRevisionImpl.class instead of BundleRevision.class for security to fix a nullpointer if the bundle has been uninstalled. (FELIX-3221)