Term filter not nil / not missing fix

The following where clause currently produces incorrect ES filter syntax:

    where: {msrp: { not: nil}} # => {\"not\":{\"term\":{\"msrp\":null}}}

The result in a 'no field specified' error. This PR should fix that.