Improve on empty history crash fix
Improve on empty history crash fix

Improves upon 6403cd5 - prevents crash with empty history
without breaking history filter

klightspeed/EDDiscovery,klightspeed/EDDiscovery,andreaspada/EDDiscovery,EDDiscovery/EDDiscovery,klightspeed/EDDiscovery,andreaspada/EDDiscovery,EDDiscovery/EDDiscovery,EDDiscovery/EDDiscovery