(2)The master of every Indian ship shall produce to the customs collector, from whom a port clearance for the ship is demanded, the certificate which is required by the foregoing provisions of this section to be in force when the ship proceeds to sea, and the port clearance shall not be granted, and the ship may be detained, until that certificate is so produced.