[TIMOB-17448] iOS - Fixed crash when module.exports is not an object

Details in [Jira ticket](https://jira.appcelerator.org/browse/TIMOB-17448)