back on topic:
I would have stopped. It defuses the dog's chase instinct. And they can't run in front of my wheel, causing a crash.
Most every dog nip I've seen has been from dogs catching up to the rider from behind and biting the moving leg or foot.
Nothing works for every dog. These all work some of the time, but have no effect on different dogs: Yelling. Blasting an emergency whistle. Squirting water. Veering toward the dog, screaming. Stopping. Taking off sunglasses and staring down the dog! Pepper spray -- but that has to be easily accessible.