Crash fix when list item is nil