Fixed issue with document ID being added twice to the path if the $id pa...

...ram is passed to docSave and _rev value is also present in $document