### 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
ease_grid->add_child(ease_label1);
	ease_grid->add_child(transition_selection);
	ease_grid->add_child(ease_label2);
	ease_grid->add_child(ease_selection);
	ease_grid->add_child(ease_label3);
	ease_grid->add_child(ease_fps);
	
	bake_dialog = memnew(ConfirmationDialog);
	bake_dialog->set_title(TTR("Anim. Baker"));
	bake_dialog->connect("confirmed", callable_mp(this, &AnimationTrackEditor::_edit_menu_pressed).bind(EDIT_BAKE_ANIMATION_CONFIRM));
	add_child(bake_dialog);
	GridContainer *bake_grid = memnew(GridContainer);
	bake_grid->set_columns(2);
	bake_dialog->add_child(bake_grid);
	bake_trs = memnew(CheckBox);
	bake_trs->set_pressed(true);
	bake_blendshape = memnew(CheckBox);
	bake_blendshape->set_pressed(true);
	bake_value = memnew(CheckBox);
	bake_value->set_pressed(true);
	bake_fps = memnew(SpinBox);
	bake_fps->set_min(1);
	bake_fps->set_max(999);
	bake_fps->set_step(1);
	bake_fps->set_value(30); 
	Label *bake_label1 = memnew(Label);
	Label *bake_label2 = memnew(Label);
	Label *bake_label3 = memnew(Label);
	Label *bake_label4 = memnew(Label);
	bake_label1->set_text("Pos/Rot/Scl3D Track:");