fix: only check for transaction state if session exists
fix: only check for transaction state if session exists

mongodb/node-mongodb-native,mongodb/node-mongodb-native,mongodb/node-mongodb-native,mongodb/node-mongodb-native