Fixed tree memory leak when removing expanded items from Tree (based on new Filterable API introduced by #11234) #11053

Change-Id: I397124cbfa355417717d2e81bf67b15b202bf16a