Add validation for undo_vote_for to avoid a crash