Bugfix in upgrade step when running from the Plone control panel