The provisions of §§ 54-9-10 and 54-9-20 shall extend to every agreement to proceed or continue on a voyage made in this State or elsewhere by a seaman, and whether in contemplation of a voyage to be commenced in the State or elsewhere, if such agreement, at the time when any such seaman may be harbored or secreted contrary to the provisions of said sections, shall not have been fully executed and determined, but shall be of force and binding on such seaman, according to the laws of this State or of the country where it was entered into or to which the ship or vessel in which such voyage was to be made may belong.