Fix issue #69: Null cookie triggering exception