Fix comparison for null/boolean values

/to @ritch

See strongloop/loopback-datasource-juggler#132
For future... consider `apply(this, arguments)` to remove the need to write out the correct argument names.