Fix solution serialization issue

Fixes bug #21174 - xamarin studio is corrupting sln files by removing
references to projects