Omit reduce key and value from JSON put request when not present

Otherwise CouchBase (at least 2.01 build-185) appears to not correctly build the design doc with a PutDDoc method call.