hidl2aidl: output when no output path specified am: e553238581 am: 0e7b67258e
am: 614358a84e

Change-Id: I57d07f0c77be9c39f209027333228e6b280d254c
diff --git a/hidl2aidl/main.cpp b/hidl2aidl/main.cpp
index d379e08..e440af6 100644
--- a/hidl2aidl/main.cpp
+++ b/hidl2aidl/main.cpp
@@ -165,7 +165,7 @@
         }
     });
 
-    if (outputPath.back() != '/') {
+    if (!outputPath.empty() && outputPath.back() != '/') {
         outputPath += "/";
     }
     coordinator.setOutputPath(outputPath);