Avoid an exception when decoding