Prohibits an agency from entering a declaratory order if the order would substantially prejudice the rights of persons who would be necessary parties to the proceedings but who are not joined as parties to the proceedings.