patch for the error 'Please ensure that you set the default write concern for the database'
if an error occurs, don't throw another one for an object that might not exist