[stacktrace] Fix out of bounds panic

Fix for #29.