Added an extra try catch around the frame-walking code to watch out for cross-domain issues that could break the code snippet. Credit to @twistedpair for his post at http://www.lustforge.com/2012/11/11/gwt-jsni-variables-an-exhaustive-list/