Merge "Remove unnecessary calls to JNIEnv::GetArrayLength"