Notwithstanding any judgment, order or decision of any court to the contrary, any expenditure incurred or authorized in connection with the election of a candidate by a political party or by any other association or body of persons or by any individual (other than the candidate or his election agent) shall not be deemed to be, and shall not ever be deemed to have been, expenditure in connection with the election incurred or authorized by the candidate or by his election agent for the purposes of this subsection: Provided that nothing contained in the Explanation shall affect (a) any judgment, order or decision of the Supreme Court whereby the election of a candidate to the House of the People or to the Legislative Assembly of a State has been declared void or set aside before the commencement of the Representation of the People (Amendment) Ordinance, 1974; (b) any judgment, order or decision of a High Court whereby the election of any such candidate has been declared void or set aside before the commencement of the said Ordinance if no appeal has been preferred to the Supreme Court against such judgment, order or decision of the High Court before such commencement and the period of limitation for filing such appeal has expired before such commencement.