Fix case that thing-at-point returns nil