Fix off-by-one when reading core stacktrace from json