A judgment shall not be rendered in favor of the plaintiff in any action brought against the board to recover any amount paid when the action is brought by or in the name of an assignee of the person paying the tax or by any person other than the person who paid the tax.