Nothing contained in this chapter shall change the nature of the defense or prevent the allowance of discounts or offsets, either in law or equity, that any defendant may have against the original assignor previous to the assignment or against the plaintiff or assignee after the assignment.