Fixed nullpointer exception when hitting inference errors in syntax highlighting.