Don't add undefined stats to body

We missed this somehow. Until a replication completes, the rep_doc does not get _replication_stats. CouchDB has a guard clause to remove undefined values, this patch restores it.