Fix the KeyError due to the key not being present in Sk.Globals.

The fix was to replace the declaration of $gbl as a new object at the
start of the switch block with the $gbl of the restored context if
present or a new object. This was Sk.Globals always pointed to the
right object even after yielding.