fixes bugzilla 9443. Query doesn't respond to negating empty fields.