Avoid JS checkmethodcall errors when too few args