Fix canceling delayed events

Delayed events aren't canceled correctly, because "sendid" is not the same as "sendId".  

The bug is exposed here : http://jsfiddle.net/qmLsqh0j/2/  The events are cancelled when the state is exited, but the events fire nonetheless.  This change fixes that.
Merge pull request #311 from mogsie/patch-1

Fix canceling delayed events