#795 handle empty cookies