Added check if TYPE is in args before calling that key. Old method cause KeyError

Change-Id: Icf854e636ef80422593835d61e9739b4cdc2c75f
diff --git a/TestON/drivers/common/cli/onosclidriver.py b/TestON/drivers/common/cli/onosclidriver.py
index 32aef33..cf2f54a 100644
--- a/TestON/drivers/common/cli/onosclidriver.py
+++ b/TestON/drivers/common/cli/onosclidriver.py
@@ -1806,7 +1806,10 @@
                 cmdStr += " -j"
             handle = self.sendline( cmdStr )
             args = utilities.parse_args( [ "TYPE" ], **intentargs )
-            type = args[ "TYPE" ] if args[ "TYPE" ] is not None else ""
+            if "TYPE" in args.keys():
+                type = args[ "TYPE" ]
+            else:
+                type = ""
             if jsonFormat and summary and ( type != "" ):
                 jsonResult = json.loads( handle )
                 if type in jsonResult.keys():