Fixed null pointer exception when changing a syntax highlighting
preference