Parentheses are missing from the REST request for the attribute table when the web map in Portal for ArcGIS 10.4 has an 'OR' filter, and the attribute table has its own filter, causing the attribute table in Web AppBuilder for ArcGIS to submit a 'where' clause that has bad logical operators.