Fixed a bug when upgrading packages which files have been deleted.