CRITICAL: Fix crash on opening compare menu

The game crashed when the compare menu was opened by pressing the direction key
towards a tile which contains at least one item.