Fix issue when mixing Cypher queries of different versions

If the same query ran first using version 1.9 and then 2.0,
an exception was thrown.