Fix importing msfxml files containing a session

[See #1179][SeeRM #7669]