Ensure we don't send nil filter attributes

If there are no available filter attributes, we may accidentally send
nil as the filter. This fixes that.