Nothing contained in title 48 of the Revised Statutes shall be deemed in anywise to impair any rights and privileges which have been or may be acquired by any foreign nation under the laws and treaties of the United States relative to the duty on tonnage of vessels, or any other duty on vessels.