Allows noResultsText to be set to a function, receiving the query and empty results array as arguments