eldoc function no longer fails at end of buffer.

syntax-after can sometimes return nil, so check that explicitly.