Correct result on update with upsert flag

When performing an upsert (and actually inserting) the `updateExisting`
flag returns empty, therefore the result should rely on the `ok` flag.