Query..generate(): allow empty queries where the filter function is the nul function, always returning an empty array