Migration of planets into and out of mean motion resonances in protoplanetary discs: overstability of capture and non-linear eccentricity damping