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