CLI: fix segfault when browsing an empty history

No match.