Fix Null filter => no results

Actually when we don't have a filter we add a close `WHERE NULL` and than we don't have any results...
I'd rather return `None` where there's no filter. And the caller won't set any filter on the query when filter is `None`.