This issue started appearing after CIMs latest update to cm.chatclient.js.
Before the change we could reestablish a chat by using
var token = localStorage.getItem('cm_GetTokenValue')
and
var id = localStorage.getItem('cimChatSessionLastUsedChatId')
But this no longer works after the refactoring of the function
cm_GetTokenValue()