652-12  Payment by garnishee, effect.  The taking of any goods or effects of any debtor, or the payment of any debt due the debtor as aforesaid, or payment made by, or execution levied upon the garnishee upon any such proceeding as aforesaid, shall be a valid discharge to the garnishee as against the judgment debtor to the amount paid or levied, although such proceeding may be set aside or the judgment may be reversed.