reapply "SERVER-10518 do not allow storage of objects with an undefined _id"

This reverts commit d0502e5bd74203d50ce5b4c8341de3ed01c6c508.