MDL-48675 mod_lesson: Error displayed while editing content page jumps

This change also fix MDL-32343 and MDL-31778 related to problems
when editing cluster pages.