[MSBuild] Handle serializing null fx profile

Fixes BXC11039 - NullReference when saving a csproj file
[Ide] Better reporting of unknown project types