Don't try to store cookies if there's none, close #2234