Add some paranoid `QueryBuilder` checks.