In the advanced inventory, recognize when the player is not grabbing anything

This is particularly troublesome in the following scenario:
* Grab something (a shopping cart)
* Enter AIM
* Assign a pane to be [D]
* Exit the AIM
* Release the cart
* Enter AIM
* You can't easily switch slot on the pane assigned to be the [D]