fix errors when body is not defined
Merge pull request #18 from Battlefy/fix/errors

fix errors when body is not defined