Issue #1071 - Ensure that Documents always have a non-null Window.
auto merge of #1072 : Ms2ger/servo/crash-domparser, r=jdm

Turns out that documents without a window `fail!` a lot, because we need the `cx` all over.