Fix double curl bug

Fixed: call to makeCurl() was doing two sequential curl requests if no $cookieSet parameter was passed.