### 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
Vector<String> ret;
	int from = 0;
	int len = length();
	while (true) {
		int end;
		if (p_splitter.is_empty()) {
			end = from + 1;
		} else {
			end = find(p_splitter, from);
			if (end < 0) {
				end = len;
			}
		}
		if (p_allow_empty || (end > from)) {
			if (p_maxsplit <= 0) {
				ret.push_back(substr(from, end - from));
			} else {
				
				if (p_maxsplit == ret.size()) {
					ret.push_back(substr(from, len));
					break;
				}
				
				ret.push_back(substr(from, end - from));
			}
		}
		if (end == len) {
			break;