fixes spelling error
Merge pull request #1370 from joshkim/master

fixes spelling error
be null-safe when checking `document.body.tagName`

fixes #1365
Merge remote-tracking branch 'upstream/master' into post-1.46