XEP-0198: Don't crash if the resume ID is incorrect

Produce a proper error message instead of crashing when the `previd` value of a `<resume/>` request is unexpected.