Improve search in langtool (now we only one time check if query is set)