MDL-41347 tool_uploadcourse: Invalid restore value handled