Fixed bug when using client without a cookiejar