Avoid ternary operator expression in destructive_reduce_n.

Fixes #25