### Godot version

4.0 beta17

### System information

Windows10

### Issue description

call `"".split()`
Is there an infinite loop inside? Function does not return.

### Steps to reproduce

"".split()

### Minimal reproduction project

N/A
TEST_CASE("[String] Variant validated indexed get") {
	Variant s = String("abcd");
	Variant::ValidatedIndexedGetter getter = Variant::get_member_validated_indexed_getter(Variant::STRING);
	Variant r;
	bool oob = true;
	getter(&s, 1, &r, &oob);
	CHECK_FALSE(oob);
	CHECK_EQ(r, String("b"));
}
TEST_CASE("[String] Variant ptr indexed get") {
	String s("abcd");
	Variant::PTRIndexedGetter getter = Variant::get_member_ptr_indexed_getter(Variant::STRING);
	String r;
	getter(&s, 1, &r);
	CHECK_EQ(r, String("b"));
}
TEST_CASE("[String] Variant indexed set") {
	Variant s = String("abcd");
	bool valid = false;
	bool oob = true;
	s.set_indexed(1, String("z"), valid, oob);
	CHECK(valid);
	CHECK_FALSE(oob);
	CHECK_EQ(s, String("azcd"));
}
TEST_CASE("[String] Variant validated indexed set") {
	Variant s = String("abcd");
	Variant::ValidatedIndexedSetter setter = Variant::get_member_validated_indexed_setter(Variant::STRING);
	Variant v = String("z");
	bool oob = true;