Plugin RemteBridge: Changed function onBeforeActivatePlugin