[Frontend(-Tests)] fix regression in bash style nick completion

if capitalization of possible nicknames differed, tab completion erased the already typed characters

NOTE: caps of the autocompleted text is that of the first match