Add check for device not found

https://github.com/appium/appium/issues/2995
whitespace issues here, should be `, "i"` (with a space after comma)