SERVER-14118 - Added  ability to  detect if _id is missing when  passing an object to r...

...s.add, if missing add it automatically  as if it was a string that had been passed.
consider using the "in" operator to check if _id is in the document:

if ("_id" in cfg) {
...