OrientDB: fixed bug reported by Andy in Gremlin ML