Improve error reporting when unmarshalling of message headers fail.