This tests that calling HTMLDocument.hasFocus() on a frameless HTMLDocument does not crash.