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

Executing sum distinct for empty table throws `java.lang.UnsupportedOperationException: empty.reduceLeft`.
I think I am the one who was mistaken.  I asked Matei, who originally wrote this code, and he agrees that this looks correct.  Sorry for the delay.