fix cookie offset
Merge pull request #15 from thomaroger/troger-fix-offset-cookie

Fix offsetExist if getCookie is null