Fix calling rollback() on a None object

In the case where some idiot passes None as the connection to the
transaction, avoid calling conn.rollback() in the exception handler,
because that masks the real exception by throwing a new one.  Instead,
check that the conn is not None.
bump version