add null check in tree updateNode
Merge pull request #99 from ajaxorg/fix/close_tab

add null check in tree updateNode