Fix possible null pointer in acumulator toString