Update JNIRhoJS.cpp

Fixed infinite loop when calling a method with a JSON Object