Only print ignoring warning when a package is not installed and not required by the root package, fixes #1642