Fixed node not being deleted when it is not added to trie in first node case