MDL-36877 Lesson: final page not displayed if show gradebook is set to no