When the required official ballots for a precinct are not delivered in time to be used on election day, or after delivery, are lost, destroyed or stolen, the clerk or other officials whose duty it is to provide ballots for use at such election, in lieu of the official ballots, shall have substitute ballots prepared, conforming as nearly as possible to the official ballots, and the board of election shall substitute these ballots to be used in the same manner as the official ballots would have been used at the election.