fix Object.keys error and add failback for stacktrace parser