Fix Validation of cookie names in HttpConnection

cookie name validation is inconsistent

- getting the cookie by name uses notNull check while setting it requires notEmpty (a stronger constraint)
- hasCookie and deleteCookie validate constant strings instead of passed cookie name