Create the root frame before evaluating the javascript URL.

This prevents a crash when the script in the javascript URL accesses the
document attribute.
auto merge of #4266 : Ms2ger/servo/js-document-crash, r=Manishearth

This prevents a crash when the script in the javascript URL accesses the
document attribute.