Changes typeahead lookup function, so when query field is not filled and minliength is greater than zero it will execute lookup properly