Fixed issue causing in-session queries to be committed automatically.

See tinkerpop/rexster#316 for details.