Fix crash on first course install
If user installs first language course on a clean system, correctly setup learning environment.