Reverting e170014113 (Change behaviour with empty hash in where clause)