mod-quiz MDL-25791 Added conditions around upgrade code so that it is only executed...