Prevent NullReferenceException in ServiceClientBase constructor

Setting CookieContainer for asyncClient introduced a NullReferenceException in the ServiceClientBase constructor. I have reordered the assignments to prevent this.