timob-11288-3_0_X: fix crash issue

backport PR: https://jira.appcelerator.org/browse/TIMOB-12342