If a parent class contains a method that is absent in a child class, it is possible for the script_method_list to include a method that is missing from the current script's source code. This fix prevents errors due to the missing func_def.
TODO: Add a test case for this.
#511