utils: Make filter_dict() transparently pass non-dict

Change-Id: Ia1802101a62e21f1ce894d80728f939bf3da5a39
diff --git a/pySim/construct.py b/pySim/construct.py
index a903305..d0101e3 100644
--- a/pySim/construct.py
+++ b/pySim/construct.py
@@ -72,6 +72,8 @@
 
 def filter_dict(d, exclude_prefix='_'):
     """filter the input dict to ensure no keys starting with 'exclude_prefix' remain."""
+    if not isinstance(d, dict):
+        return d
     res = {}
     for (key, value) in d.items():
         if key.startswith(exclude_prefix):