Fixed datalist handling of empty lists.