Backport a fix from change I835385802

If stats.bandwidth is Infinity (oh, if only..), it gets serialized to null,
which violates the schema constraints.

Change-Id: I41b6e975353a29510e39d5138adbc4fdd7caa2e8