Fixed issue with document ID being added twice to the path if the $id param is passed to docSave and _rev value is also present in $document