Bug 932309 - Don't null out mDoc in nsGlobalWindow::FreeInnerObjects. r=smaug.

--HG--
extra : rebase_source : add310c90bafed468345647c61404c8e9971087b
Bug 932309 - Don't null out mDoc in nsGlobalWindow::FreeInnerObjects, additional fixes. r=smaug.

--HG--
extra : rebase_source : 40c7cdbe6baa9c7596ecf9eb67c917c95f9b2351