Fail out more robustly from generating a method handle for FFI if it cannot be done.