Fix cache being stale after a part install.
Merge pull request #4871 from ianestrachan/fix-null-install-parts

Fix cache being stale after a part install.