Fixed crash when deleting last survey or contact from list view.