Fix yet another possible crash in the trade window