Fix an issue which could prevent new repositories from being marked imported.