issue #20983: keep 'undefined' out of history panel