As part of
MDL-25718 when a students grades are recovered after a student re-enrols in a course grade_grab_course_grades() is called. This goes through all the activity modules and tells each one to update the grades in gradebook. If you create a lesson activity then go through this process a grade of 0.00 appears in gradebook. It should be null to avoid affecting grade averages.