MDL-57898 customfield: Set the handler's parent context in course_create