[PATCH] webservices: Properly restore the reader position when the next element doesn't match.