[CodeCompletion] Fix a crash when completing typealiases for protocol conformance (#3120)
The index may be at the end of the ArrayRef of chunks if the completion
ends with a simple parameter with no type annotation. Check that the
index is in-bounds before adding text.
rdar://problem/26273906