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

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