Workaround GAE issue when server fails with HTTP 500: retry the request.