check null before set domain at setCookie()

Some thing you want to test netty-servlet-brigde with a short curl command like :

  curl -v --cookie "USER_TOKEN=Yes" http://127.0.0.1:5000/

 This request sent a cookie without domain specific ,you will get a NullPointerException error