If there is an assignment of a thing in action, the action by the assignee is without prejudice to a setoff or other defense existing at the time of, or before notice of the assignment. But, this section does not apply to a negotiable promissory note or bill of exchange transferred in good faith and upon valuable consideration before due.