MDL-38228 Upgrade script that fixes corrupt course modules to sequence relation