The court in the judicial district of which the local referendum has occurred shall declare it null on the whole respective district or in certain polling stations if during the voting or votes’ counting severe violations of this Code had occurred, which impacted the outcome of the referendum.