Handle null as valid value for reduce. #108