Bug #41577 fix: reinitialization of dotnet_domain structure member

Please consider this bugfix for longstanding bug.