Ensure that DocumentManager._resetOpenDocumentIds always returns a promise