I have to agree with Mr Wiltshire Builders. We all cock up our line from time to time, and know we could have done a better job of corner judgement, but it's how you get yourself out of trouble that counts. Although you can get away with a certain amount of braking when the bike is tipped in (front included), it has to be done with care and be progressive. Any snatching of the brakes will have the tyres struggling to keep traction, and at the same time, the bike will react more violently. But smooth progressive braking is probably the last thing your body is trying to do, when you've got a muppet driver heading towards you on your side of the road. Most folks will panic and snatch. Disaster. What you did was to take evasive action, which if it had been a bit smoother, was probably the right course of action. The 'slapper' was probably triggered by an over-enthusiastic hazard avoidance, maybe coupled with another control error, like on/off throttle, or dabbing the brakes, or possibly pulling the clutch in (many people do when they panic). I would be more inclined to practice taking evasive action in a bend. It can be practiced safely on the road, just by counter-steering one way then the other. Pick a nice empty bend, that maybe has something like a drain cover half way round. Aim towards it as if you were riding normally, then take a swerve to avoid. Best to do it when there's no other traffic around...