MDL-39369: Lesson module: fix setType() properly