Do not fail if an Exception has no backtrace
Created by: zinovyev
Currently backtrace
of an exception is checked by the empty?
method. But it sometimes occur that the Exception class will return nil
for backtrace:
StandardError.new.backtrace.empty?
NoMethodError: undefined method `empty?' for nil:NilClass