fix(code): Preserve reservation when inserting document in shared folder (closes #4477)