MDL-34231 SCORM: use correct calculation of attemptsleft