MDL-41256 course: improved debugging on course creation