Avoid multiple `uninstall` artifacts.

In #3431, we recently discovered that this form is valid
to the DSL, but can exercise a bug at uninstall time.
Merge pull request #3439 from rolandwalker/avoid_multiple_uninstall_artifacts

Avoid multiple `uninstall` artifacts.