Fix bug preventing from opening scripts in the legacy editor

The way we looked at the stack trace (to prevent infinite recursion)
unfortunately prevented the legacy editor from being used all the
time because we looked at the complete stack trace, including the
calling function, which of course was found.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>