Fix obscure bug in wordlist.c caused by 11e5191. It would make nodes
get out of sync when dupes was found after truncation. Closes #699.