178. Substitution of petitioner.

Where the petitioner:

  1.  

    (1)     is subsequently found not to have been entitled to present the petition; or

  2.  

    (2)     consents to withdraw the petition or to allow it to be dismissed;

  3.  

    (3)