MDL-40384 mod_scorm: make calls to getNodeByAttribute function