Fix historyStartupEvent to work even w/ empty hist file