Fix crash when opening Speed histogram for the first time, on a file without speed info.

I had a trainer file as the second file in my history. Opening this ride, and selecting the speed histogram made GC crash.

I narrowed it down to line 905 in src/PowerHist.cpp. The code was trying to do a resize on a QVector with a negative value. count was -7.

Making sure that count is always 0 or greater fixed the crash.

Note that opening another ride file, with speed information before this one, selecting the speed histogram and only after that selecting the ride without speed information, did not crash the application. I'm suspecting that there might be some resetting of values, perhaps in the "standards" arrays, that is not done when a data series is missing.
Merge pull request #856 from ibooij/fix_crash_when_dataseries_is_empty

Fix crash when opening Speed histogram for the first time, on a file without speed info.