added null check for Cookie #81

#81