avoid crash in case of no 'window' property in app delegate
Merge pull request #38 from matsu911/master

Avoid crash in case of no 'window' property in app delegate