Fix crash in cornercase when denying upgrades to a settler

The game would crash when denying upgrade permissions to a settler
which had previously started leveling up, but had then leveled down.
(Technically: had a upgrade production line active, but then leveled
down). When leveling down the upgrade production line was not removed.