[SPARK-4318][SQL] Fix empty sum distinct.

Executing sum distinct for empty table throws `java.lang.UnsupportedOperationException: empty.reduceLeft`.
Oops, it seems that `Sum` and `SumDistinct` in traditional SQL systems return `null` here.
I'll correct these.