[#1449] Handle misformated cookies