In the case of an assignment of a thing in action, the action by the assignee shall be without prejudice to any setoff or other defense existing at the time of or before notice of the assignment; but this subsection shall not apply to a negotiable instrument transferred in good faith and upon valuable consideration before due. In the case of an assignment of an account in a secured transaction, the provisions of Article 9 of Title 11A shall apply.