treeview : fix possible error

Node destruction on event for instance