Mantis #0000: fixed issue with upgrades from some D6 versions.