Remove some unnecessary undefined checks in extractSymbol
#19256
+14
−25
undefined checks in extractSymbol
#19256