Fixed another JNI related bug that was making postUICallback crash.