Fixed a segfault when selecting some languages as syntax highlighting.