Fix NPE when removing last project from workspace
Merge pull request #3746 from ussuri/small-fixes-4

Fix NPE when removing last project from workspace