### Godot version

Beta 17, master

### System information

Windows 11

### Issue description

Godot gets a hard crash while attempting to code-complete for member `const` of a class.

### Steps to reproduce

```GDScript
enum E { V1 }

const e := E
```

And then type a `.` after the last `E`, which triggers code hints/auto-completion for subscripts based on `E` and causes a hard crash.

Does not happen for `var e := E.V1`.

### Minimal reproduction project

See above.
switch (type) {
		case GDScriptParser::Node::IDENTIFIER: {
			
			const char *result = get_rename_from_map(ProjectConverter3To4::gdscript_properties_renames, identifier);
			if (result) {
				return result;
			}
			
			result = get_rename_from_map(ProjectConverter3To4::enum_renames, identifier);
			if (result) {
				return result;
			}
			
			result = get_rename_from_map(ProjectConverter3To4::color_renames, identifier);
			if (result) {
				return result;
			}
			
			result = get_rename_from_map(ProjectConverter3To4::class_renames, identifier);
			if (result) {
				return result;
			}
			return get_rename_from_map(ProjectConverter3To4::builtin_types_renames, identifier);
		}
		case GDScriptParser::Node::CALL: {