Fix for full screen closing immediately

Fixes issue with my last pull request (https://github.com/kripken/emscripten/pull/2155) causing full screen to close immediately because of canvas container not being defined.