Fixed handler of UpgradeRequiredError exception

Yea... This was funny.