Fix error when Error.stackTraceLimit is less than 3