Fix removal of non-existent node