Guard against null transaction IDs