(refs #578)Add migration for repositories which have removed parent or origin repository.