Fix exception when global Error.stackTraceLimit is too low

fixes #9