[GS] Fixed bug: Application crashes when mail is opened in standalone window