Always include the header jar file. The header jar file is used by JavacTool in Cider-G to resolve dependencies when producing diagnostics.

Bug: 383594831
Change-Id: I945469aa13dc40b85578fd21792908f39415d8fc
diff --git a/java/base.go b/java/base.go
index b55c938..bd4140f 100644
--- a/java/base.go
+++ b/java/base.go
@@ -2225,6 +2225,8 @@
 func (j *Module) IDEInfo(ctx android.BaseModuleContext, dpInfo *android.IdeInfo) {
 	if j.expandJarjarRules != nil {
 		dpInfo.Jarjar_rules = append(dpInfo.Jarjar_rules, j.expandJarjarRules.String())
+	}
+	if j.headerJarFile != nil {
 		// Add the header jar so that the rdeps can be resolved to the repackaged classes.
 		dpInfo.Jars = append(dpInfo.Jars, j.headerJarFile.String())
 	}