### 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)

update_using_transform(get_edited_property_value());
}
void EditorPropertyProjection::update_using_transform(Projection p_transform) {
	setting = true;
	spin[0]->set_value(p_transform.columns[0][0]);
	spin[1]->set_value(p_transform.columns[0][1]);
	spin[2]->set_value(p_transform.columns[0][2]);
	spin[3]->set_value(p_transform.columns[0][3]);
	spin[4]->set_value(p_transform.columns[1][0]);
	spin[5]->set_value(p_transform.columns[1][1]);
	spin[6]->set_value(p_transform.columns[1][2]);
	spin[7]->set_value(p_transform.columns[1][3]);
	spin[8]->set_value(p_transform.columns[2][0]);
	spin[9]->set_value(p_transform.columns[2][1]);
	spin[10]->set_value(p_transform.columns[2][2]);
	spin[11]->set_value(p_transform.columns[2][3]);
	spin[12]->set_value(p_transform.columns[3][0]);
	spin[13]->set_value(p_transform.columns[3][1]);
	spin[14]->set_value(p_transform.columns[3][2]);
	spin[15]->set_value(p_transform.columns[3][3]);
	setting = false;
}
void EditorPropertyProjection::_notification(int p_what) {