Added a try catch block to catch permission denied error when trying to access parent window object
Authored by: prudhvireddy 2011-09-21
Parent: [r5550]
Child: [r5552]