If the property attached has been sold and the attachments thereon have been dissolved, the money arising from the sale thereof, after deducting the charges and expenses of sale, shall be restored to the debtor or to his personal representative, upon request. If the property has been restored to the debtor on his bond, the bond shall be void.