Account for document.body being absent.
Merge pull request #72 from eventualbuddha/account-for-null-document-body

Account for document.body being absent.