Fixed some null pointer exceptions in the syntax highlighting.