JBTM-1038 don't try to pack the Xid if it is null