ios-hybrid bugfix

There were case were win is undefined, crashing Appium.