Add check for device not found

https://github.com/appium/appium/issues/2995
same whitespace issue