Close tooltip when buying or selling items

Buying or selling an item causes a message to be displayed and the tooltip to go blank. Better to close the tooltip when these messages appear. Resolves #2193.