Fix iOS context change

Remote debugger hangs on selecting app multiple times in Safari mode, as it tries to if we call getContexts multiple times. Same as https://github.com/appium/appium/pull/2460 for 1.0-beta.