Fixed issue when calling a JS function in a native object

Overrides https://github.com/appcelerator/hyperloop-ios/pull/75
- Fix some runtime errors