Fix issue with forks where the parent was deleted.