scripts/symbolize.py: remove spurious output '(out/arm/core/tee.elf)'

When a TA dump is processed, there is a list of ELF files just before the
call stack. However, when analyzing a TEE core dump, there is no such
list. Make sure this situation is properly handled to avoid displaying a
spurious message. This means fixing incorrect indentation in a
conditional.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
diff --git a/scripts/symbolize.py b/scripts/symbolize.py
index abed7ba..1eecf75 100755
--- a/scripts/symbolize.py
+++ b/scripts/symbolize.py
@@ -394,13 +394,14 @@
                     for k in self._elfs:
                         e = self._elfs[k]
                         if (len(e) >= 3):
+                            # TA executable or library
                             self._out.write(e[2].strip())
-                        elf = self.get_elf(e[0])
-                        if elf:
-                            rpath = os.path.realpath(elf)
-                            path = self.pretty_print_path(rpath)
-                            self._out.write(' (' + path + ')')
-                        self._out.write('\n')
+                            elf = self.get_elf(e[0])
+                            if elf:
+                                rpath = os.path.realpath(elf)
+                                path = self.pretty_print_path(rpath)
+                                self._out.write(' (' + path + ')')
+                            self._out.write('\n')
                 # Here is a good place to resolve the abort address because we
                 # have all the information we need
                 if self._saved_abort_line: