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