hack to fix squeel compatibility issues with where.not(...) type queries
reported in #320.