When the parent Commit does not exist on gitea, an error will be reported when opening the Commit details page: invalid memory address or nil pointer dereference.   (cherry picked from commit b7614e2d2f2af246e33b8bd6a38ecfd1babc9ecc)