bugfix: fix error when debug_backtrace() has no previous object