Fixing Issue 2998 - Replacing `!!window.frameElement` with `window.parent !== window`