(ThubanApplication.OnInit): Make sure the mainwindow has a reference to the map of the initial session. This fixes a bug introduced with the fix for RT#2245