Fix #167797 (impossibility to duplicate a lesson into a personnal workspace)
Fix crash when creating a lesson