XEP-0198: Generate warning if resumption fails

Log a proper warning message if XEP-0198 session resumption fails.

THIS COMMIT IS MEANT TO BE SQUASHED INTO A PREVIOUS ONE WHEN THE HISTORY
OF THIS FEATURE BRANCH IS REWRITTEN.