Fix #16

body has to be checked first then toString get called
Merge pull request #17 from jrmgx/master

Fix #16