Fixed a bug in staging JNI arguments inside the trampoline