fix CookieComponent - when write null or empty string