Add app to srcs polygerrit_plugin only if needed

Change-Id: I381e4a3d24b1c70f781acda6e3e6803645fd8e88
diff --git a/tools/bzl/js.bzl b/tools/bzl/js.bzl
index 03ee87c..6590cd6 100644
--- a/tools/bzl/js.bzl
+++ b/tools/bzl/js.bzl
@@ -443,7 +443,13 @@
     """
 
     # Combines all .js and .html files into foo_combined.js and foo_combined.html
-    _vulcanize_rule(name = name + "_combined", app = app, srcs = srcs + [app], pkg = PACKAGE_NAME, **kwargs)
+    _vulcanize_rule(
+        name = name + "_combined",
+        app = app,
+        srcs = srcs if app in srcs else srcs + [app],
+        pkg = PACKAGE_NAME,
+        **kwargs
+    )
 
     closure_js_binary(
         name = name + "_bin",