Fix auto transaction in Cypher queries for Neo4j versions prior 2.0