JBIDE-13271 fix for 4.0.x

JBIDE-13271 BrowserSim: simulator is closing unexpectedly while changing skin
    
fix for 4.0.x