Fix branch pagination error (#16805)
Fix branch pagination error (#16805)

Fix #16801

Even if default branch is removed from the current page, but the total branches number should be still kept. So that the pagination calculation will be correct.
go-gitea/gitea,go-gitea/gitea,go-gitea/gitea