Fix error handling in Base.downgrade and YumBaseCli.downgradePkgs.