Fix cast exception when saving a sln with projects that failed to load