Where, on prosecution by the owner of any goods, an officer of customs is convicted of an offence connected with the removal of such goods from the warehouse without payment of duty, the whole of the duty on such goods shall be remitted, and, the Collector of Customs, shall, in accordance with the rules, pay to the owner due compensation for the...