Passivation and reactivation of nickel catalysts