Fix errors happening when source branch of merge request is removed and then restored See merge request !7568