TOOLS-318: only increment numInserted for nil upsert errors