TIMOB-13055-3_1_X: Add null check for tableViewItem

backport for https://github.com/appcelerator/titanium_mobile/pull/4078

https://jira.appcelerator.org/browse/TIMOB-13055