Fixed node deletion bug
The user was able to delete all children of the mother note, which in turn caused all kinds of errors