24. The sum deposited by a co-candidate for the acceptance of his nomination-paper is returned to him, except where otherwise provided for, when the candidate whose co-candidate he is, is elected to the office of councillor of the electoral district.