"sum" accounting displays bad log message

While doing an implementation for #15989 (moved), unixninja fixed this issue. Giving it a bug number for the changelog.