fix Trie.keysWithPrefix throwing on not found