Package manager: fix issue when user canceled the authentication dialog and the process finished.