If the owner of goods deposited at a wharf sells them, and gives notice to the wharfinger of such sale, on tendering the wharfage then due, he is discharged from liability for future wharfage.