OrientDB: countEdges() throws exception if lightweight edge setting is on