Fix restoring globals on another frame fails on Firefox
Merge pull request #378 from BYK/patch-1

Fix restoring globals on another frame fails on Firefox