fix CookieComponent - when write null or empty string
Merge pull request #2482 from zoghal/2.5-cookie-fix2

fix CookieComponent - when write null or empty string