Don't attempt to short-circuit the '$end_of_table' case, this can send us into an infinite loop if the table is empty.