Fix bug in backtrace filter when backtrace is nil

An exception without a backtrace happens in our test suite when using #assert_raise with an actual exception instance (vs the class + message signature). This is the easiest fix, and I don't see any downside to having the filter handle that case.