Fix a runntime error when there's no data in the students table.