The failure to join a party to an action may be pleaded in the peremptory exception, or may be noticed by the trial or appellate court on its own motion.
Acts 1995, No. 662, §1.