fix ajax error handling on saucelabs tests
fix ajax error handling on saucelabs tests