getService: break on null hwservicemanager

Test: hidl_test
Test: internal marlin boots and works, verified lshal
Bug: 36611652
Change-Id: Ia307e0e6f43ccbb19ccb249e85969cd095a5c545
diff --git a/generateCpp.cpp b/generateCpp.cpp
index 178b705..3a1a200 100644
--- a/generateCpp.cpp
+++ b/generateCpp.cpp
@@ -225,10 +225,10 @@
             });
 
             out.sIf("!ret.isOk()", [&] {
-                // hwservicemanager fails
+                // hwservicemanager fails, may be security issue
                 out << "ALOGE(\"getService: defaultServiceManager()->get returns %s\", "
                     << "ret.description().c_str());\n"
-                    << "continue;\n";
+                    << "break;\n";
             }).endl();
 
             out << "iface = " << interfaceName << "::castFrom(ret);\n";