Merge pull request #9220 from robertomiranda/where-with-empty-hash

Active Record: Change behaviour with empty hash in where clause
Change behaviour with empty array in where clause