An independent electoral adjudicator could help prevent future demonstrations from turning into a democratic crisis.