Fix reduce of empty list