### Godot version

4.1.dev

### System information

Win11

### Issue description

I load a non-existing GDScript, but it still returns a valid instance instead of null.
```gdscript
@tool
extends EditorScript

func _run():
	var s = ResourceLoader.load("non_exists.gd", "", ResourceLoader.CACHE_MODE_IGNORE)
	print(s)
	assert(s == null)

```

```
  Attempt to open script 'res://non_exists.gd' resulted in error 'File not found'.
<GDScript#-9223369015982753437>
  res://new_script.gd:7 - Assertion failed.

```

### Steps to reproduce

N/A

### Minimal reproduction project

N/A
props.push_front(sptr->member_info[msort[i].name]);
		}
#ifdef TOOLS_ENABLED
		p_properties->push_back(sptr->get_class_category());
#endif 
		for (const PropertyInfo &prop : props) {
			p_properties->push_back(prop);
		}
		props.clear();
		sptr = sptr->_base;
	}
}
bool GDScriptInstance::property_can_revert(const StringName &p_name) const {
	Variant name = p_name;
	const Variant *args[1] = { &name };
	const GDScript *sptr = script.ptr();
	while (sptr) {
		HashMap<StringName, GDScriptFunction *>::ConstIterator E = sptr->member_functions.find(GDScriptLanguage::get_singleton()->strings._property_can_revert);
		if (E) {
			Callable::CallError err;
			Variant ret = E->value->call(const_cast<GDScriptInstance *>(this), args, 1, err);
			if (err.error == Callable::CallError::CALL_OK && ret.get_type() == Variant::BOOL && ret.operator bool()) {
				return true;
			}
		}
		sptr = sptr->_base;
	}
	return false;
}
bool GDScriptInstance::property_get_revert(const StringName &p_name, Variant &r_ret) const {