Fix crash when another plugin emit an activity

Check the session exist