Fix typo in check for record nodes in flat adjacent edges.