### 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
CHECK(l.size() == 3);
	for (int i = 0; i < l.size(); i++) {
		CHECK(l[i] == slices_r[i]);
	}
	s = "test";
	l = s.split();
	CHECK(l.size() == 4);
	for (int i = 0; i < l.size(); i++) {
		CHECK(l[i] == slices_3[i]);
	}
	s = "Mars Jupiter Saturn Uranus";
	const char *slices_s[4] = { "Mars", "Jupiter", "Saturn", "Uranus" };
	l = s.split_spaces();
	for (int i = 0; i < l.size(); i++) {
		CHECK(l[i] == slices_s[i]);
	}
	s = "1.2;2.3 4.5";
	const double slices_d[3] = { 1.2, 2.3, 4.5 };
	Vector<double> d_arr;
	d_arr = s.split_floats(";");
	CHECK(d_arr.size() == 2);
	for (int i = 0; i < d_arr.size(); i++) {
		CHECK(ABS(d_arr[i] - slices_d[i]) <= 0.00001);
	}
	Vector<String> keys;
	keys.push_back(";");
	keys.push_back(" ");
	Vector<float> f_arr;
	f_arr = s.split_floats_mk(keys);
	CHECK(f_arr.size() == 3);