[Bug#48646] Prevent NullPointerException on unset globalTransactionId.
Backport of https://issues.jboss.org/browse/JBTM-1430