Fix Android build.
Re-add backtrace_is_needed() call.

Removed by mistake during refactoring of commit
69909e3853c23d0ce062b6c9f232191970da9aee