Make sum() work by treating number zero as a special case.