After conversing with a close friend of Kenyan ancestry on this matter,here's the salient points:
Mind your route when traveling. If you're going someplace and it's through an area likely to be tumultuous , work around it or don't go . When political turmoil happened for said friend in Nairobi his family eliminated nonessential travel until things cooled off.m, whether it was a weekend soccer match or longer term issues.
In the event that doesn't work and you're trapped on a road with a lot of people on it, pull off and reroute before you're "surrounded".
I gather being "stuck" in a riot as mentioned by the OP would be a culmination of situational awareness and conflict avoidance failures; topics sure to be brought up at any legal proceeding following a use of force within a mob.In this age of InstaFaceWitter , any smartphone user should have relatively recent news on which areas are experiencing "unrest" and thus make plans accordingly.