### 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
AnimationTimelineEdit *timeline = nullptr;
	Popup *path_popup = nullptr;
	LineEdit *path = nullptr;
	Node *root = nullptr;
	Control *play_position = nullptr; 
	float play_position_pos = 0.0f;
	NodePath node_path;
	Ref<Animation> animation;
	bool read_only = false;
	int track = 0;
	Rect2 check_rect;
	Rect2 path_rect;
	Rect2 update_mode_rect;
	Rect2 interp_mode_rect;
	Rect2 loop_wrap_rect;
	Rect2 remove_rect;
	Ref<Texture2D> type_icon;
	Ref<Texture2D> selected_icon;
	PopupMenu *menu = nullptr;
	bool hovered = false;
	bool clicking_on_name = false;
	int hovering_key_idx = -1;
	void _zoom_changed();
	Ref<Texture2D> icon_cache;
	String path_cache;
	void _menu_selected(int p_index);
	void _path_submitted(const String &p_text);
	void _play_position_draw();
	bool _is_value_key_valid(const Variant &p_key_value, Variant::Type &r_valid_type) const;
	Ref<Texture2D> _get_key_type_icon() const;