make a copy of the content before decoding base64 and reset the content if there was a error