Fix Ref.condition_query()

Used to demand no empty elements for an array.  Now is satisfied with any non-empty element.