Fix tab-completion of empty string

Closes #301