MDL-38429: lesson report - Improve lesson statistics code.
MDL-38429 Lesson Module: improve lesson code by reseting NULL value to use lowercase.