Fix crash when user tried to go on mooc lesson for the first time (#165900)