Regardless of what defense you make on him revealing the fact he has an item box, he could have easily just dropped some garbage rather than everything he had.
I still think he shouldn't have revealed it in the first place, unless they were seconds away from killing him.