Work around cases when head repo is deleted