Fixes a regression where TreeOutline.findTreeElement would