If an action is brought for recovery on any bond prior to the time specified in this chapter, the plaintiff shall not recover in such action and the defendant shall be entitled to have and recover such attorney fees as the court deems reasonable, in addition to all taxable costs.
(Added by Stats. 1941, Ch. 79.)