Fix null-handling bug in class-of-thing-at-point.