StandAlone Iframe: Added try catch to parent check