Fix case where upgrade list is empty