Fix ?version=all/diffs bug preventing full response

Previously, `?version=all` or `?version=diffs` would only return that last document version immediately following a PUT. This was not the intended output.