MDL-41417 course: allow the use of a duplidate idnumbers if it existed prior to patch