Reset hash when leaving add tree mode, Fixes #328
Merge pull request #502 from maurizi/fix/328/addTreeUrl

Reset hash when leaving add tree mode, Fixes #328