Update node index on drop node

needed to remove nodes from node index on drop node in order to allow
for reinserting nodes back into the graph.