Fix crash when opening courses before with no lecture sections