MDL-43749 Fix restore from Moodle 2.0