Fixes unauthorized error when empty cookie is passed.