Pakistan faced a shock defeat to Netherlands in the T20 World Cup - until Faheem Ashraf's sixes and a costly dropped catch saw an upset avoided.