Variable length relationships with properties results in an invalid Cypher query