Fix HTML hinting issues caused by new token types, "error" and "tag error", introduced in CodeMirror xml parser.
Null checking on ctx.token.type before calling indexOf on it.
Merge pull request #5489 from adobe/rlim/hint-issue-5343

Fix HTML hinting issues caused by new token types -- "error" and "tag error".