If for any reason the judgment is reversed or set aside, or if any orders or writs under it are disobeyed by the defendant or its officers, the treasurer shall return the bonds to the plaintiff. At his option, the plaintiff may be relegated to all rights which he held and enjoyed under the bonds, crediting on such rights all amounts received on the judgment. The court in which the judgment is rendered shall enforce the duty imposed upon the treasurer.
(Added by Stats. 1949, Ch. 79.)