Fix crash when creating/loading projects. Fixes #7931