R: fixed a segfault in is.chordal, fixes lp bug #1167891.