GTNPORTAL-2923 Check if the transaction status is being active before doing a commit