Little confused about the question because your saying Sonar is loosing your interfaces MIDI port? Do you mean the in, the out or both?
Sonar is the Global environment you work in. Once you have set your settings they do not change unless you change them. These settings are not saved with the Project. Projects don't like it if you have changed the interface or some settings. They will be upset about the new environment. So yes, you'll have to open each one in your current environment, make the changes and re-save.