Fix bug in backtrace filter when backtrace is nil