In a proceeding brought against the principal or the sureties upon an undertaking given to secure the release of attached property, it is a defense that the property for which the undertaking was given did not, at the execution of the writ of attachment, belong to the defendant against whom it was issued.