Fix bug DNN-5500: when check whether have installed package, also need check the package type.