[dexter] Check path != None before calling os.path.exists

The test optnone-simple-functions.cpp added in D97668 fails on macOS.
os.path.exists raises an exception because we pass it None. Guard against this.

Related revision: https://reviews.llvm.org/D97668

GitOrigin-RevId: 61d314024dc447e49481cb8494bf7165f9ec1323
diff --git a/dexter/dex/debugger/DebuggerControllers/ControllerHelpers.py b/dexter/dex/debugger/DebuggerControllers/ControllerHelpers.py
index adac767..a8e0722 100644
--- a/dexter/dex/debugger/DebuggerControllers/ControllerHelpers.py
+++ b/dexter/dex/debugger/DebuggerControllers/ControllerHelpers.py
@@ -27,7 +27,8 @@
         # Iterate over all watches of the types named in watch_cmds
         for watch in towatch:
             loc = step_info.current_location
-            if (os.path.exists(loc.path)
+            if (loc.path != None
+                    and os.path.exists(loc.path)
                     and os.path.samefile(watch.path, loc.path)
                     and watch.lineno == loc.lineno):
                 result = watch.eval(step_info)