Assert that we're handed a DOM global in initialize_global.
Merge pull request #2933 from Ms2ger/initialize_global

Assert that we're handed a DOM global in initialize_global.