fix findNodeWithRelations when node has no relation