Updated to fix OPTIONAL MATCH breaking change

Attempt at a simple fix to the breaking change which arose in Neo4j 2.0.0 around optional matching.