Fix Node.getAncestor to stop filtering at editor instance node