Failure to begin the action within the time specified in section 3430 is a bar to recovery of the charges. In any such action the court may render judgment for the plaintiff for any part or portion of the charge, penalties, or costs found to be void and paid by plaintiff upon the assessment.