MDL-34231 SCORM: calculate correct number of attemptsleft when entering an attempt.