templates/cibuglog_query_input: fix autocompletion cursor
Inserting of autocompletion suggestions doesn't work properly when one
edits query in the middle. findWordAt
actually returns "empty string"
when space is before (it checks if there is word/text after cursor, if
not it checks what's before it). It works properly when creating new
user query because there are no spaces before cursor. That change fixes
that small issue.