CONTRIB-4945 Avoid adding slots in course with no teacher