285.If, at the trial of an election petition, the court decides that a candidate at such election was guilty, by an agent, of any offence that would render his election void, and the court further finds:
(1) That no corrupt practice was committed at such election by the candidate personally, and that the offences mentioned were committed contrary to the orders and without the sanction or connivance of such candidate;
(2) That such candidate took all reasonable means for preventing the commission of corrupt practices at such election;
(3) That the offences mentioned were of a trivial, unimportant and limited character;
(4) That in all other respects, so far as disclosed by the evidence, the election was free from any corrupt practice on the part of such candidate and of his agents,— then such candidate shall not be liable to any of the penalties enacted by section 284, and the election of such candidate shall not by reason of such offence be annulled.