[branch-1.1][SPARK-4355] OnlineSummarizer doesn't merge mean correctly

@andrewor14 This backports the bug fix in #3220 . It would be good if we can get it in 1.1.1. But this is minor.