MDL-40536 course/externallib fix incorrect variable