You are 100% correct.
My business partner had such an experience. He was detained in an Asian airport for hours.
Fortunately the Philippine Embassy helped clear up the matter.
The government should bear the cost of the new passport. But maybe it will again be a defective one!
Ruben V. Calip
Sta. Cruz, Manila