JBIDE-14901 Unable to run BrowserSim/Cordovasim

fixed
includes fix for JBIDE-14891 Modify BrowserSim preferences code to avoid exceptions