### Godot version

v4.2.dev4.official [549fcce5f]

### System information

Windows 10

### Issue description

`scene/main/node.cpp:1757 - Parameter "p_node" is null.` when attempting to type after using find function. Does not happen in 4.2dev3.

https://github.com/godotengine/godot/assets/3820082/4a2818f7-cc3b-4b46-a0b1-5bc6a85b4abc


### Steps to reproduce

1) Open any script in the script editor
2) Ctrl+F to select some text that exists in the script
3) Hit escape to re-focus the script editor without placing the caret
4) Attempt to type



### Minimal reproduction project

[find-mrp.zip](https://github.com/godotengine/godot/files/12555561/find-mrp.zip)

pending_select_all_on_focus = false;
}
void LineEdit::_text_changed() {
	_emit_text_change();
	_clear_redo();
}
void LineEdit::_emit_text_change() {
	emit_signal(SNAME("text_changed"), text);
	text_changed_dirty = false;
}
void LineEdit::_shape() {
	const Ref<Font> &font = theme_cache.font;
	int font_size = theme_cache.font_size;
	if (font.is_null()) {
		return;
	}
	Size2 old_size = TS->shaped_text_get_size(text_rid);
	TS->shaped_text_clear(text_rid);
	String t;
	if (text.length() == 0 && ime_text.length() == 0) {
		t = placeholder_translated;
	} else if (pass) {
		t = secret_character.repeat(text.length() + ime_text.length());
	} else {
		if (ime_text.length() > 0) {
			t = text.substr(0, caret_column) + ime_text + text.substr(caret_column, text.length());
		} else {
			t = text;
		}