### Godot version

4.0.rc

### System information

Any

### Issue description

If the RESET animation is generated at the same time as the Bezier track is generated, the bezier edit button will not be active.

![image](https://user-images.githubusercontent.com/61938263/218256176-88b1b196-7b6b-4404-84ad-e8694f23bb1b.png)

Also, if you delete a track in the Bezier Editor, or in undo redo, it will not update correctly.

### Steps to reproduce

![image](https://user-images.githubusercontent.com/61938263/218256230-4b0219d5-87e4-453a-8294-59f8feb0cfd5.png)


### Minimal reproduction project

N/A
transition_selection = memnew(OptionButton);
	transition_selection->add_item("Linear", Tween::TRANS_LINEAR);
	transition_selection->add_item("Sine", Tween::TRANS_SINE);
	transition_selection->add_item("Quint", Tween::TRANS_QUINT);
	transition_selection->add_item("Quart", Tween::TRANS_QUART);
	transition_selection->add_item("Quad", Tween::TRANS_QUAD);
	transition_selection->add_item("Expo", Tween::TRANS_EXPO);
	transition_selection->add_item("Elastic", Tween::TRANS_ELASTIC);
	transition_selection->add_item("Cubic", Tween::TRANS_CUBIC);
	transition_selection->add_item("Circ", Tween::TRANS_CIRC);
	transition_selection->add_item("Bounce", Tween::TRANS_BOUNCE);
	transition_selection->add_item("Back", Tween::TRANS_BACK);
	transition_selection->select(Tween::TRANS_LINEAR); 
	ease_selection = memnew(OptionButton);
	ease_selection->add_item("In", Tween::EASE_IN);
	ease_selection->add_item("Out", Tween::EASE_OUT);
	ease_selection->add_item("InOut", Tween::EASE_IN_OUT);
	ease_selection->add_item("OutIn", Tween::EASE_OUT_IN);
	ease_selection->select(Tween::EASE_IN_OUT); 
	ease_fps = memnew(SpinBox);
	ease_fps->set_min(1);
	ease_fps->set_max(999);
	ease_fps->set_step(1);
	ease_fps->set_value(30); 
	Label *ease_label1 = memnew(Label);
	Label *ease_label2 = memnew(Label);
	Label *ease_label3 = memnew(Label);
	ease_label1->set_text("Transition Type:");
	ease_label2->set_text("Ease Type:");
	ease_label3->set_text("FPS:");