Fixed crash on selecting inventory slot that doesn't contain an item. Fixes #3