[MOD] set -1 when total is 0

Merged Ignacio Goitea requested to merge 7.0-ADD-fields-for-report into 7.0-stage

Merge request reports