Fixed a bug where an empty bar would appear when assigning firstResponder to the textField

If we resignResponder, then give firstResponder to the textField again,
an empty bar will appear if the suggestionList is empty.