Handle historyless texts in history API