Bugfix: do not try to display items with invalid slot IDs