If the ownership of a thing, and any other right in rem of the same thing assigned to one and the same person, such other right in rem of thing is extinguished by merger, except the owner or a third party has a legal advantage in the continuance of such other right in rem.