Fix bug DNN-5425: save the package id into viewstate after save it into database.