MDL-39910 SCORM: hide toggle button when course structure disabled and fix upgrade of old settings