[core] Fix crasher on TWItemClickListener when list is empty

Fixes #80