Restore on error

Restore original embed content if the json response contains an error.