gh-2276 make sure _id isn't subdocument before overriding type
Merge pull request #2445 from alabid/gh-2276

gh-2276 make sure _id isn't subdocument before overriding type