Fix for deleting file from tree after rename from tree

Fix for #6482.

* Update fullPath-to-DOM id cache after rename
* Cleanup cache management

@RaymondLim can you review?