fix for undefined doc.body (too fast run)
Merge pull request #16 from dryabov/master

fix for undefined doc.body