SMJS: Better handle when the C code tries to call a badly defined method