No purchase of any property of a judgment debtor at any sale made in pursuance of any writ of execution issued by the Supreme Court, the District Court or the Local Court shall be affected by the invalidity of any such writ, but the person at whose instance the writ was issued shall be liable to indemnify any person prejudiced by the sale.