If, on the trial of a person charged with an offence relating to elections and punishable on summary conviction, the evidence establishes that the person is guilty of an indictable offence relating to elections, the person is not entitled to have the charge dismissed if the evidence also establishes that the person did any act or acts such as to constitute the offence with which the person is actually charged.