TIMOB-15336  add null value checking

https://jira.appcelerator.org/browse/TIMOB-15336