However, if this is the expected behavior for an empty repository, I'm okay to close the case.
I don't know it this is expected. However, the repository is not empty any more and the error is gone as well.