Don't crash when the code-completion is triggered with an empty text, while still displaying something