Fixed completion bug that occurred when the text replacement region was zero-length (i.e., after a '.')