It was a spontaneous reaction of Pakistanis against the looters. While it would have been better if the munafiqeen didn't show their faces in Islamic holy places, the abuse they got achieved some benefits.
1. All Pakistanis now know that the looters were abused and humiliated in Medina. Even more Pakistanis will hate them.
2. The establishment that put the looters in power will be suffering from shame and anxiety to see their puppets being so abused. Juniors will be wondering at the decision making ability of their seniors.
3. These criminals and others will be afraid of being seen in public, not only in Pakistan but in other countries as well.
4. Saudi rulers will have seen the contempt of Pakistanis for these criminals and are more likely to treat them with the contempt they deserve.
5. Other people, like Turks, Chinese etc, who read this forum and other news will have seen the hatred of Pakistan for the looters, and will not take them seriously.
6. Other criminals, like Zardari and his Billu, won't dare show up in holy places. It is not acceptable for every criminal, looter, murderer, traitor, rapist, extortionist to commit crimes in Pakistan and then show up in Mecca and Medina to appear pious.