If the court finds that an assessment is void in whole or in part, it shall render judgment for the plaintiff for the amount of the taxes paid on that portion of the assessment that is found to be void. The taxes paid on the portion of the assessment not found to be void shall constitute valid taxes which, if paid after delinquency, shall carry penalties, interest, and costs.
Ca. Rev. and Tax. Code § 5144