reload() would trigger the error on an empty repository, but removing it completely would harm "normal" repositories (they would have to trigger the reload again somehow).