JBIDE-14891 Modify BrowserSim preferences code to avoid exceptions

done