### Godot version

4.0-rc6

### System information

Fedora 37, Mesa Intel ADL GT2

### Issue description

Code that works as expected at runtime fails with Nil references to (assigned) exported vars in the editor:

![tool_global_position_error](https://user-images.githubusercontent.com/364501/222031460-ffb1ecbd-5175-4a42-8470-25285ba5f821.png)


### Steps to reproduce

Try to access the `global_position` of a `Node3D` that's assigned to an exported var.

See that it works at runtime.

See that it errors in the editor with:

> Invalid get index 'global_position' (on base: 'Nil').

### Minimal reproduction project

[tool_test.zip](https://github.com/godotengine/godot/files/10856640/tool_test.zip)

setting = true;
	spin->setup_and_show();
	spin->get_line_edit()->set_text(TS->format_number(rtos(get_edited_property_value())));
	setting = false;
	spin->show();
}
void EditorPropertyEasing::_spin_value_changed(double p_value) {
	if (setting) {
		return;
	}
	
	
	if (Math::is_zero_approx(p_value)) {
		p_value = 0.00001;
	}
	
	
	p_value = CLAMP(p_value, -1'000'000, 1'000'000);
	if (positive_only) {
		
		p_value = MAX(0.0, p_value);
	}
	emit_changed(get_edited_property(), p_value);
	_spin_focus_exited();
}
void EditorPropertyEasing::_spin_focus_exited() {