modify the nullPointException of Goback and GoForward ,when the tree nodes had been deleted.