Actually update the badge after cleaning up tasks.