Do not register tree component before it's fully initialized
Registration of the navigation component inside pagetreeElement.js needs to be moved inside done callback of the ajax action (after tree.initialize is called).
This will prevent issues like:
SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse (<anonymous>)
thrown e.g. when undeleting a page from recycler.