Enabling REST API and swagger docs for apps with no resources folder

Change-Id: Ic35d178785e87f496bdcb425269c970758b5c516
(cherry picked from commit 4005c060d5520182d6849a4b7df61d0561664c5f)
diff --git a/tools/build/bazel/osgi_java_library.bzl b/tools/build/bazel/osgi_java_library.bzl
index b2505a4..1d58510 100644
--- a/tools/build/bazel/osgi_java_library.bzl
+++ b/tools/build/bazel/osgi_java_library.bzl
@@ -410,7 +410,8 @@
 
     native_srcs = srcs
     native_resources = resources
-    if web_context != None and api_title != "" and len(resources) != 0:
+
+    if web_context != None and api_title != "":
         # generate Swagger files if needed
         _swagger_java(
             name = name + "_swagger_java",