Add check for device not found

https://github.com/appium/appium/issues/2995
`if (protocolFaultError || deviceNotFoundError) {` is more readable than 
`if (retryCheck || outCheck) {`