Raise MethodNotDefined instead of return empty C code