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

Executing sum distinct for empty table throws `java.lang.UnsupportedOperationException: empty.reduceLeft`.
Are these actually the correct answers, or would traditional SQL systems return `null` here?  I'd like to merge this because throwing an exception is clearly bad, but we should probably at least comment on these test cases that we are codifying bad behavior...