Hide tooltip if inventory is empty

Addresses #2162