CORDOPLUG-235 Fix nested function returning instead of parent
CORDOPLUG-235 Fix nested function returning instead of parent

Onegini/cordova-plugin-onegini,Onegini/cordova-plugin-onegini,Onegini/cordova-plugin-onegini