Fix error when req.body is undefined
Merge pull request #4 from simonlopez/master

Fix error when req.body is undefined