Fixed exception handler for installing packages that are not instsalled yet.