Michael van Gerwen somehow managed to lose the 13th leg as Raymond van Barneveld kept his hopes alive at the World Matchplay.