Do not attempt to set the transaction timeout unless there is an active ...

...transaction