Resize: Prevented access to the body element before it is initialized.
Merge pull request #3611 from pjackson28/cleanupresize

Resize: Prevented access to the body element before it is initialized.