Fix for 'Exists' option in query_field handling