Once the ballot box has been locked by the precinct board [election board] after its first count and tally, no person shall open the ballot box or remove its contents except by court order or as otherwise provided by the Election Code.