Fixed trie's findRule.

It now checks that it's no longer on a word before returning rulesHere.