Preventing package uninstallation if not applicable