[ENTESB-591] Make references to mbean server mandatory to allow unregistering mbeans. Add gurads to check if mbean is registered before registering/unregistering.