fix insert bug, not creating _id

fix bug with insert when there is no _id property or _id == null