### 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
bool found = true;
		for (int k = 0; k < key_count; k++) {
			found = true;
			if (r_key) {
				*r_key = k;
			}
			const char32_t *cmp = keys[k].get_data();
			int l = keys[k].length();
			for (int j = 0; j < l; j++) {
				int read_pos = i + j;
				if (read_pos >= len) {
					found = false;
					break;
				}
				if (src[read_pos] != cmp[j]) {
					found = false;
					break;
				}
			}
			if (found) {
				break;
			}
		}
		if (found) {
			return i;
		}
	}
	return -1;
}
int String::findn(const String &p_str, int p_from) const {