Fix empty response in sumSeries when one of the timeseries is empty
Be compatible with python2/python3