Fixed bug error handling Transaction.Commit.

https://github.com/Starcounter/Starcounter/issues/2330