He argued that he had discharged his duties in good faith, and the benefits received could not be retrospectively withdrawn merely because his election was later declared void