Fixes decoding for decryption errors

Missed this in the original PR for cookie serializers. Should I add a test or are the compilation warnings (which I missed) sufficient?