Bug 1031303 - mContext can be null when nsGlobalWindow::SetNewDocument is called, r=jst a=sylvestre