If the court determines in its discretion that the plaintiff bringing an action under this act has failed to prosecute the matter with reasonable diligence, the court may substitute as plaintiff any person that consents and that would have been authorized under this act to initiate the action.
35 P.S. § 780-159