Fix error on empty cookies