Prevent undefined dereference in TokenMatcher::compare.