iOS - Support for third party frameworks and ti.current modules

This was making the ti.current module crash in some cases, return NULL to avoid calling a method on a NULL object.