check if palette.CurrentQueue is null to avoid a crash

fixes #5624
Merge pull request #5798 from Mailaender/td-production-tooltip-nre

Fixed a crash in Tiberian Dawn when a production tooltip is being rendered while the last accompanying production queue is destroyed.