[bugfix] Package manager: uninstalling a package with empty target colle...

...ction caused entire db to be deleted. Refuse to deploy if target is empty.