SERVER-13865 handle edge case for v2.4 when upserted _id not returned

(cherry picked from commit 090ea9a5ad1ed52e40b5a66df5ee1eab283845cb)