I like the nature of this change, but I also think it makes sense not to leave things inconsistent.  We'd get unexpected behavior if we tried to mock `document` on `goog.global` here.