Fix crash on there are empty lecture sections