Don't check document.documentElement in not yet loaded window
(fix #61)