Death of party to suit

25. Upon the death of a party, any suit for the declaration of a marriage as invalid or void shall be stayed: Provided that nothing in this section contained shall affect the right of the surviving party or of the heirs of the deceased party to claim damages, maintenance or other compensation as in the preceding section provided.