TIMOB-14890 check null rows while setting adapter in spinner

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