Correct handling of cookie deletion with a callback.