Fix some bugs.

* xref.el (xref-identifier-at-point): Case when thing-at-point
returns nil was not handled.
(xref-location-buffer, xref-location-position):
Implemention for xref--bogus-location was missing.
(xref--singleton-p): Deleted was not used.
(xref--find-definition): Simplified.