Fixed compatibility with Squeel

Rails version: 3.2.12

This patch fixes work with Squeel.

Root of the problems that Squeel also use where without arguments, so where doesn't use passed block but returns `WhereChain`.

Minimal example that exposes problem:

```ruby
  User.where{ id > 3 }.uniq
```