Should fix PR bin/24948 by Wolfgang S. Rupprecht. (nuke getframe() completely because its interface doesn't support this, and it it used at one place only anyway)