fix: _generate_locals_view crashes if repr(local) crashes