Fix a null dereference in InventoryBarUpdatePosition().