### Godot version

v4.0.beta13.official [caacade56]

### System information

Linux Ubuntu 20.04 with Unity desktop

### Issue description

When calling an undefined function in the shader editor with argument(s), such as `undefined_function(1)`, the error reads:

> Too many arguments for "undefined_function()" call. Expected at most 0 but received 1.

instead of the expected:

> No matching function found for: 'undefined_function'.

This is possibly a regression introduced in https://github.com/godotengine/godot/issues/18225, since the latter was focused on the arguments part.

To avoid such regression in the future, consider adding a unit test with this case (and, in fact, unit tests for the other signature errors too if there are not already).

### Steps to reproduce

1. Create a shader resource and open the shader editor
2. Enter `undefined_function(1);` in the fragment() definition

### Minimal reproduction project

N/A
{ TK_PRECISION_MID, "mediump", CF_BLOCK | CF_PRECISION_MODIFIER, {}, {} },
	{ TK_PRECISION_HIGH, "highp", CF_BLOCK | CF_PRECISION_MODIFIER, {}, {} },
	
	{ TK_UNIFORM, "uniform", CF_GLOBAL_SPACE | CF_UNIFORM_KEYWORD, {}, {} },
	{ TK_UNIFORM_GROUP, "group_uniforms", CF_GLOBAL_SPACE, {}, {} },
	{ TK_VARYING, "varying", CF_GLOBAL_SPACE, { "particles", "sky", "fog" }, {} },
	{ TK_CONST, "const", CF_BLOCK | CF_GLOBAL_SPACE | CF_CONST_KEYWORD, {}, {} },
	{ TK_STRUCT, "struct", CF_GLOBAL_SPACE, {}, {} },
	{ TK_SHADER_TYPE, "shader_type", CF_SHADER_TYPE, {}, {} },
	{ TK_RENDER_MODE, "render_mode", CF_GLOBAL_SPACE, {}, {} },
	
	{ TK_INSTANCE, "instance", CF_GLOBAL_SPACE | CF_UNIFORM_QUALIFIER, {}, {} },
	{ TK_GLOBAL, "global", CF_GLOBAL_SPACE | CF_UNIFORM_QUALIFIER, {}, {} },
	
	{ TK_CF_IF, "if", CF_BLOCK, {}, {} },
	{ TK_CF_ELSE, "else", CF_BLOCK, {}, {} },
	{ TK_CF_FOR, "for", CF_BLOCK, {}, {} },
	{ TK_CF_WHILE, "while", CF_BLOCK, {}, {} },
	{ TK_CF_DO, "do", CF_BLOCK, {}, {} },
	{ TK_CF_SWITCH, "switch", CF_BLOCK, {}, {} },
	{ TK_CF_CASE, "case", CF_BLOCK, {}, {} },
	{ TK_CF_DEFAULT, "default", CF_BLOCK, {}, {} },
	{ TK_CF_BREAK, "break", CF_BLOCK, {}, {} },
	{ TK_CF_CONTINUE, "continue", CF_BLOCK, {}, {} },
	{ TK_CF_RETURN, "return", CF_BLOCK, {}, {} },
	{ TK_CF_DISCARD, "discard", CF_BLOCK, { "particles", "sky", "fog" }, { "fragment" } },
	
	{ TK_ARG_IN, "in", CF_FUNC_DECL_PARAM_SPEC, {}, {} },
	{ TK_ARG_OUT, "out", CF_FUNC_DECL_PARAM_SPEC, {}, {} },
	{ TK_ARG_INOUT, "inout", CF_FUNC_DECL_PARAM_SPEC, {}, {} },