MDL-19010 fixed redirect at main page if upgrade required, otherwise it would end with exception due to DB structure changes
MDL-19010 fixed redirect at main page if upgrade required, otherwise it would end with exception due to DB structure changes

dilawar/moodle