This section shall not affect the liability of masters or owners of vessels, passengers or other persons to pay for such services, labor or work as they are respectively required to pay or discharge by law. (As amended by chap. 465 of 1896, ?? I, and chap. 268 of 1900.