Make sure $where can really be null

I stumble across this bug. Read the doc, it was saying that WHERE could be null, but turns out you can't.
This fixes it.