The trade computer will still sent you to stations that offered the best price, before they were destroyed. Either in the current system, or in previous systems.
Also reported in this (resolved) ticket: https://ministry.kronosaur.com/record.hexm?id=80413

george moromisato 9 Jan 2020:

Fixed in 1.9 Beta 1. Thanks!