MDL-45813 Fix variable name in scheduled task