fix sendevent command when body is None
Merge pull request #2 from davec82/master

Fix sendevent command