7-21-2117. Defenses in actions related to licensing violations. Upon the trial of any action authorized by this part, the defendant is considered not to have procured the proper license unless the defendant either produces it or proves that the license was procured. However, the defendant may plead in bar of the action a recovery against and payment by the defendant in a civil action of the proper license tax, together with damages and costs.