Fix double rejection error caused by findElement in WebDriverJs.