JBIDE-14891 Modify BrowserSim preferences code to avoid exceptions

done
must be applied after #108