History panel: do not update title when empty string or unchanged