MDL-43020: Fix calculation of lesson scale value warning