Fixed "Cannot read property 'type' of undefined"
Merge pull request #6 from bezoerb/patch-body

Fixed "Cannot read property 'type' of undefined"