[sessionstore2html] fix to work in more recent Firefox versions