[CSL-212] Fix bug with `panic` in deserialization code
[CSL-212] Fix bug with `panic` in deserialization code

input-output-hk/cardano-sl,input-output-hk/pos-haskell-prototype,input-output-hk/cardano-sl,input-output-hk/pos-haskell-prototype,input-output-hk/pos-haskell-prototype,input-output-hk/cardano-sl,input-output-hk/cardano-sl