In any proceedings for an offence under this Part of this Act or any instrument made under this Part, being an offence in respect of any excess in the quantity of any goods, it shall be a defence for the person charged to prove that the excess was attributable to the taking of measures reasonably necessary in order to avoid the commission of an offence in respect of a deficiency in those or other goods.