Fix NPE on course creation