Remove broken queries from portal_tabs

closes #1164