Fixes #87195 by using the correct TreeNode constructor so its data is fi...

...lled from the correct layer fields.