I don't take her to dog parks or places with lots of people. Avoiding any possibility of the situation would mean not taking her for daily walks around the neighborhood; this is just the reaction when somebody who is not familiar in the neighborhood sees her for the first time (often people just walking down their driveways toward me). I don't think that fully isolating her from ever seeing a person she doesn't know is necessarily the best choice for her either.
For somebody to suddenly pet her, there would have to be a person who is hiding behind a hedge or car waiting to jump out and pet a strange dog, which would be a bad idea regardless of the dog's disposition to strangers.
I understand your point, but I think you're making the assumption that I'm putting her into avoidable situations that are higher risk, rather than the bare minimum necessary proximity to people in order for her to get her exercise and the psychological necessity for anxious dogs to scope out their surroundings regularly.
My point is the owner is not in control of whether someone suddenly pets the dog, and it bites them.
So the warning before, is also the allowance after. Depending on circumstances the owner can only partially control.
If the warning were not also a reasonable allowance after a bad incident of the kind the owner imagines is possible, then instead of a warning the owner should be avoiding any possibility of the situation.