fix NPE exception. Converted to Transaction exception.

Problem found in testTxnRollback see
https://github.com/hazelcast/hazelcast/blob/master/hazelcast-client/src/test/java/com/hazelcast/client/txn/ClientTxnTest.java#L66