Fix crash when another plugin emit an activity

Check session was made
Merge pull request #672 from Sneko/develop

Fix crash when another plugin emit an activity