Sometimes when you close a project, the Definitions Pane continues to display a document, even though it is not in the navigator (list or tree on the left side) anymore.
For example, open some files not in a project, then open a project. Display one of the project's files in the Definitions Pane, then close the project. The navigator only shows the files that were opened before the project, but the document displayed in the Definitions Pane is still from the project.
Resolved - after closing project, set ActiveDocument in AbstractGlobalModel to be the first document in the navigation pane.