Use WeakRef to prevent crash on RM 2.5/2.6

Workaround for #131.

Not sure if this is something that should be fixed by RubyMotion, but it does prevent the crash.

@lrz should this be merged or should we just wait for a fix in http://hipbyte.myjetbrains.com/youtrack/issue/RM-236?