### Godot version

4.0.3, 4.1-dev1, 4.1-dev2

### System information

Windows 11, ASUS Zephyrus G14 2022, Ryzen 9, Radeon 6700S

### Issue description

If you create a custom class script and extend it in a custom sub class script using GDScript, override `_init()` in the sub class but not in the parent class, and then call `super()` in the sub class, it will run fine in the editor or if exported with the debug template. However, if you export a release build, the `super()` call will induce a script error.

I think the bug is that the debugger should throw an error in this case. Trying the same with methods like `_ready` for classes extending nodes or even `_to_string` for a RefCounted class and running in the editor will cause a script error to be caught by the debugger.

In editor:
![debug](https://github.com/godotengine/godot/assets/125445387/f6da77c5-c9d3-4bb9-a4b0-80d2f9218033)

Release build:
![release_error](https://github.com/godotengine/godot/assets/125445387/73a9d098-7c3b-45e4-8761-e3f40ffd3bc9)


### Steps to reproduce

Create two classes
ClassTwo extends ClassOne
ClassTwo overrides virtual method _init() (**ClassOne does not**)
ClassTwo calls super() in _init()
No error in debug/editor
Error in release

### Minimal reproduction project

N/A
void reduce_expression(GDScriptParser::ExpressionNode *p_expression, bool p_is_root = false);
	void reduce_array(GDScriptParser::ArrayNode *p_array);
	void reduce_assignment(GDScriptParser::AssignmentNode *p_assignment);
	void reduce_await(GDScriptParser::AwaitNode *p_await);
	void reduce_binary_op(GDScriptParser::BinaryOpNode *p_binary_op);
	void reduce_call(GDScriptParser::CallNode *p_call, bool p_is_await = false, bool p_is_root = false);
	void reduce_cast(GDScriptParser::CastNode *p_cast);
	void reduce_dictionary(GDScriptParser::DictionaryNode *p_dictionary);
	void reduce_get_node(GDScriptParser::GetNodeNode *p_get_node);
	void reduce_identifier(GDScriptParser::IdentifierNode *p_identifier, bool can_be_builtin = false);
	void reduce_identifier_from_base(GDScriptParser::IdentifierNode *p_identifier, GDScriptParser::DataType *p_base = nullptr);
	void reduce_lambda(GDScriptParser::LambdaNode *p_lambda);
	void reduce_literal(GDScriptParser::LiteralNode *p_literal);
	void reduce_preload(GDScriptParser::PreloadNode *p_preload);
	void reduce_self(GDScriptParser::SelfNode *p_self);
	void reduce_subscript(GDScriptParser::SubscriptNode *p_subscript, bool p_can_be_pseudo_type = false);
	void reduce_ternary_op(GDScriptParser::TernaryOpNode *p_ternary_op, bool p_is_root = false);
	void reduce_type_test(GDScriptParser::TypeTestNode *p_type_test);
	void reduce_unary_op(GDScriptParser::UnaryOpNode *p_unary_op);
	Variant make_expression_reduced_value(GDScriptParser::ExpressionNode *p_expression, bool &is_reduced);
	Variant make_array_reduced_value(GDScriptParser::ArrayNode *p_array, bool &is_reduced);
	Variant make_dictionary_reduced_value(GDScriptParser::DictionaryNode *p_dictionary, bool &is_reduced);
	Variant make_subscript_reduced_value(GDScriptParser::SubscriptNode *p_subscript, bool &is_reduced);
	
	Array make_array_from_element_datatype(const GDScriptParser::DataType &p_element_datatype, const GDScriptParser::Node *p_source_node = nullptr);
	GDScriptParser::DataType type_from_variant(const Variant &p_value, const GDScriptParser::Node *p_source);
	static GDScriptParser::DataType type_from_metatype(const GDScriptParser::DataType &p_meta_type);
	GDScriptParser::DataType type_from_property(const PropertyInfo &p_property, bool p_is_arg = false, bool p_is_readonly = false) const;
	GDScriptParser::DataType make_global_class_meta_type(const StringName &p_class_name, const GDScriptParser::Node *p_source);