Squash some warnings present when a query fails.