And be it enacted, That if any such Petitioner, being a Prisoner in Execution at the Time of filing his Petition, shall be detained in Prison for any Debt or Claim in respect of which he is protected from Process by his Final Order, it shall be lawful for the Commissioner to order any Officer who shall have such Petitioner in custody by virtue of such Execution to discharge such Petitioner without exacting any Fee; and such Officer shall be hereby indemnified for so doing.