Removed some code that appeared not to be used in Resource Tree Panel

### What does it do ?

Removed what appears to be unused code in the resource tree panel.

### Why is it needed ?

Cleanup.
Furthermore, code was relying on defined ID, which would prevent any developer to extend the `MODx.tree.Resource` class without JS issue/error.