Some errors (like those from JS) don't contain a stacktrace, don't
assume they have one.