That's a bug that has been reported years ago and still hasn't been fixed.
The only solution is to load a previous game save. This time, before you trade it, set something (anything) in the production queue. Problem solved. It's annoying, especially if you have to redo a turn or two, but...