Fix client crash on empty history #25