This fixes a regression caused by 40ee9aa9 (Fix stats.cactive accounting regression.) and first released in 4.1.0.