[TIMOB-11698] Ensure window is open before trying to display gallery
Merge pull request #81 from vishalduggal/timob-11698-30X

[TIMOB-11698] 3_0_X Ensure window is open before trying to display gallery