Try to avoid errors when publishing in non existing exchange

An error occured when publishing a message in a non existing exchange then in a correct exchange.
The second message isn't published.