Avoid panic in decoder