Don't crash when there are no x values for a moving average smoothing. [#708562]