Fix corruption while trying to resume and the server don't suport it

Issue #1982