fix npe in checkMenuItemDiffs in TreeNodeDocumentUpdateListener