Fix saving existing design document

If the design document already existed, the revision of the existing
document was dropped. This resulted in a conflict when trying to save
the new design document.