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

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