stat: don't trust per_unit_log() if log is NULL