Added a nilsafe for the signed cookie
Close #2
Merge branch 'bug/2'