TIMOB-14423 add null value checking

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