Fixed some rare bug in Aho-Corasick implementation for CPU.