Fixed NPE in Tree when calling non-final constructor #11132

Change-Id: Ie2b44368513c9b51c184f473d429ec9d3e56b8c7