Fixes issue with new repos having no tests

It would try and send NaN as part of the JSON, which fails.
Now replaces NaN with 0.0