A former councillor has avoided prison for tampering with voters’ ballot papers to elect himself to local government.