[TIMOB-16562] Handle cases when value is null

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