Maybe add another assertion that the length of the results list is greater than 0 before accessing the first item?