fix two possible crashes in battleroom
fix wx assertion failed: RemoveItem (RefreshItems(), index was out of bounds)