### Godot version

master ([06ccbfe](https://github.com/godotengine/godot/commit/06ccbfe8eec6e840db3df2360dc2804386f940b8))

### System information

PopOS 22.04

### Issue description

Sometimes the doc page is broken when the engine is closed and then restarted.
Closing the doc and opening it again fixes it.

![2023-05-27_22-15](https://github.com/godotengine/godot/assets/3624853/ed202a55-03e8-420a-bc1c-ccfc7f7cd02a)


### Steps to reproduce

- Open a documentation page for any node
- Restart Godot

### Minimal reproduction project

NA

EDIT : Added the commit hash @Calinou 
return st_args;
}
Control::TextDirection RichTextLabel::get_text_direction() const {
	return text_direction;
}
void RichTextLabel::set_language(const String &p_language) {
	if (language != p_language) {
		_stop_thread();
		language = p_language;
		main->first_invalid_line.store(0); 
		_validate_line_caches();
		queue_redraw();
	}
}
String RichTextLabel::get_language() const {
	return language;
}
void RichTextLabel::set_autowrap_mode(TextServer::AutowrapMode p_mode) {
	if (autowrap_mode != p_mode) {
		_stop_thread();
		autowrap_mode = p_mode;
		main->first_invalid_line = 0; 
		_validate_line_caches();
		queue_redraw();
	}
}
TextServer::AutowrapMode RichTextLabel::get_autowrap_mode() const {
	return autowrap_mode;
}
void RichTextLabel::set_visible_ratio(float p_ratio) {