### 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(err == OK);
	CHECK(s == u32str);
	err = s.parse_utf16(u16str_swap);
	CHECK(err == OK);
	CHECK(s == u32str);
	Char16String cs = u16str;
	CHECK(String::utf16(cs) == s);
	cs = u16str_swap;
	CHECK(String::utf16(cs) == s);
}
TEST_CASE("[String] UTF8 with CR") {
	const String base = U"Hello darkness\r\nMy old friend\nI've come to talk\rWith you again";
	String keep_cr;
	Error err = keep_cr.parse_utf8(base.utf8().get_data());
	CHECK(err == OK);
	CHECK(keep_cr == base);
	String no_cr;
	err = no_cr.parse_utf8(base.utf8().get_data(), -1, true); 
	CHECK(err == OK);
	CHECK(no_cr == base.replace("\r", ""));
}
TEST_CASE("[String] Invalid UTF8 (non-standard)") {
	ERR_PRINT_OFF
	static const uint8_t u8str[] = { 0x45, 0xE3, 0x81, 0x8A, 0xE3, 0x82, 0x88, 0xE3, 0x81, 0x86, 0xF0, 0x9F, 0x8E, 0xA4, 0xF0, 0x82, 0x82, 0xAC, 0xED, 0xA0, 0x81, 0 };
	
	static const char32_t u32str[] = { 0x45, 0x304A, 0x3088, 0x3046, 0x1F3A4, 0x20AC, 0xD801, 0 };
	String s;
	Error err = s.parse_utf8((const char *)u8str);
	CHECK(err == ERR_PARSE_ERROR);
	CHECK(s == u32str);