Indeed the cases I'm thinking of, it was the Judge that was captured, lost their position and was able to put their name up for election before being freed. I simply assumed that if the guards were letting you send messages, you could send a message to run for the election.