Remove assert in malloc statistic. Fixes bug 12486.