Dissipative dynamics of a qubit coupled to a nonlinear oscillator