JBIDE-14539 Error when viewing source from BrowserSim of page and VPE is set as default HTML editor

- added a check for null