No error, irregularity, or omission which does not affect the substantial rights of the taxpayers within the district or the electors voting at any election at which bonds of any district are authorized to be issued shall invalidate the election or any bonds authorized by such election.