Resolved an issue causing an exception when a list item was removed and the list is clicked