We purge it [here](https://github.com/facebook/react/blob/b11540ccb2321aeb7259fcf0b3a38aeeea35231d/src/isomorphic/ReactDebugTool.js#L88-L89) but this code doesn’t run because of the [early exit](https://github.com/facebook/react/blob/b11540ccb2321aeb7259fcf0b3a38aeeea35231d/src/isomorphic/ReactDebugTool.js#L53-L57).

Need to fix this and add a test case to make sure we don’t regress on it.

var {
      includeOwnerDisplayName = false,
      includeParentDisplayName = false,
      expectedParentID = null,
    } = options;
    var result = {
      displayName: ReactComponentTreeDevtool.getDisplayName(rootID),
    };
    var ownerID = ReactComponentTreeDevtool.getOwnerID(rootID);
    var parentID = ReactComponentTreeDevtool.getParentID(rootID);
    expect(parentID).toBe(expectedParentID);
    if (includeParentDisplayName && parentID) {
      result.parentDisplayName = ReactComponentTreeDevtool.getDisplayName(parentID);
    }
    if (includeOwnerDisplayName && ownerID) {
      result.ownerDisplayName = ReactComponentTreeDevtool.getDisplayName(ownerID);
    }
    var childIDs = ReactComponentTreeDevtool.getChildIDs(rootID);
    var text = ReactComponentTreeDevtool.getText(rootID);
    if (text != null) {
      result.text = text;
    } else {
      result.children = childIDs.map(childID =>
        getTree(childID, {...options, expectedParentID: rootID })
      );
    }
    return result;
  }
  function assertTreeMatches(pairs, options) {