MDL-40384 mod_scorm: check if item is already active, avoid recursive calls