[JBTM-1950] Fix null pointer access during txn cleanup