Fix crash if the cookie value is too short
Merge pull request #1 from marksamman/master

Fix crash if the cookie value is too short