When any real or personal property subject to a mortgage is specifically devised, the devisee shall take such property so devised subject to such mortgage unless the will provides that such mortgage be otherwise paid. The term "mortgage" as used in this section shall not include a pledge of personal property.
A charge or encumbrance upon any real or personal estate for the purpose of securing the payment of money, or the performance of any covenant or agreement, shall not be deemed a revocation of any will relating to the same estate, previously executed. The devises and legacies therein contained shall pass and take effect, subject to such charge or encumbrance.