Fixed and optimized getting of nested iframes contexts for Window.