Fix crash on startup when using appium 1.0