Add check for device not found

https://github.com/appium/appium/issues/2995