SERVER-10489: move collection creation after validation for upsert case