MDL-40384 mod_scorm: add check on selection of destroyed node