Fix inclusion of "doc":"undefined" in changes feed

We were reusing the wrong variable after removing the default values.

BugzId: 24356
Merge pull request #127 from cloudant/24356-fix-doc-undefined-in-changes

Fix inclusion of "doc":"undefined" in changes feed