Whoever conveys real estate by deed or mortgage containing a covenant that it is free from all encumbrances, when an encumbrance, whether known to the person conveying or not, appears of record to exist thereon, but does not exist in fact, shall be liable in an action of contract to the grantee, the grantee’s heirs, executors, administrators, successors, or assigns, for all damages sustained in removing the same.