Fix a panic when pkg add'ing a package already installed.