mod/quizport prevent errors caused by upgraderunning flag when upgrading from quizport to taskchain on Moodle 2.x