Minor changes to account for CodeParser.parse_identifiers being used in list_internal_identifiers.py

Signed-off-by: Aditya Deshpande <aditya.deshpande@arm.com>
diff --git a/tests/scripts/check_names.py b/tests/scripts/check_names.py
index ef67694..e6a38ba 100755
--- a/tests/scripts/check_names.py
+++ b/tests/scripts/check_names.py
@@ -342,7 +342,7 @@
         * exc_files: A List of relative filepaths for excluded files.
         """
         accumulator = set()
-        all_wildcards = include_wildcards + exclude_wildcards
+        all_wildcards = include_wildcards + (exclude_wildcards or [])
         for wildcard in all_wildcards:
             accumulator = accumulator.union(glob.iglob(wildcard))
 
diff --git a/tests/scripts/list_internal_identifiers.py b/tests/scripts/list_internal_identifiers.py
index 779a16f..6b41607 100755
--- a/tests/scripts/list_internal_identifiers.py
+++ b/tests/scripts/list_internal_identifiers.py
@@ -46,7 +46,7 @@
     result = name_check.parse_identifiers([
         "include/mbedtls/*_internal.h",
         "library/*.h"
-    ])
+    ])[0]
     result.sort(key=lambda x: x.name)
 
     identifiers = ["{}\n".format(match.name) for match in result]