Reset GWebResult buffer and length in case of an error