MDL-43222 SCORM: correct check for list of attempts and make correct check for current attempt in scorm_get_toc