Bugfix: crash when listing items around the player

Steps to reproduce:
1. Hit V to list items around the player
2. Enter some garbage string as a filter, so that 0 items are found
3. Hit escape to close list window
4. Hit V to list items
5. Hit E -- game crashes

I actually managed to do just that by accident :-/