Only show duplicate id warning if really from _id

Fixes #1980