fixed json serialization when a node of an edge is null (ie not visible by the current user