Adding support for corrupted cookies

If the saved node id is not existing in the currently loaded tree, nothing is "initially_selected". We don't override the initially selected node if the save_selected node don't exist anymore