29. (1) Where any damage to any harbour, dock, pier, quay or works connected therewith is done by any vessel or by any person employed in any vessel and acting in the course of his employment-
(a) the owner of that vessel shall be liable, and
(b) if that damage is done through the wilful act or the negligence of the master of that vessel, such master shall also be liable,
to pay to the Master Attendant the actual or estimated cost of repairing that damage :
Provided, however, that where such damage is done by any vessel while it is in the charge of a pilot appointed under the Pilots Ordinance and the owner of that vessel proves that such damage is due to the wilful act or the negligence of such pilot, such owner shall not be subject to the liability imposed by the preceding provisons of this subsection.
(2) Where the owner or master of any vessel incurs a liability under subsection (1), the Master Attendant may detain that vessel until sufficient security is given for the *Damage to harbour, &c.*