Fix iOS context switching

Remote debugger hangs on selecting app multiple times in Safari mode, as it tries to if we call getContexts multiple times.