Fixed popstate event and the chat iframe both adding entries to the history