Ensure KPIs fail gracefully for empty datasets.

If there is no data in a dataset, ensure the KPI modules
do not crash and burn. Also update tests.
Merge pull request #356 from alphagov/bugfix/crashing-bug-in-kpi-module

Ensure KPIs fail gracefully for empty datasets.