Scenario to reproduce:
- Open a MSA.
- Attach a tree to the MSA.
- Ensure that the "Tree Settings" options panel tab is opened.
- Select both documents in the Project View, remove them.
Current state: in case the document with the MSA is removed before the tree, UGENE crashes.