be0160ae03
If a backup contains a set reference where the questionscontextid does not match the context of the question category (as the category was moved, but the reference was not updated correctly), then we might end up restoring a quiz with a broken question. This change ensures that we update the context to match the question category during the restore.