Check if promise exists before trying to access transaction.