Fix issue where stats are broken if response object is missing

We can't assume `doc.responses` exists.