Well, the real problem is that "current main package config" is stored as text in .cfg file.
I guess we should check at startup whether this config exists in current .upp's main config to prevent these kinds of problems. I think that package recreation (instead of "already exists" message) would help here too.
Anyway, the simple and quick solution now would be to "reselect" main package config using that droplist in TheIDE toolbar.