Fix comparison for null/boolean values

/to @ritch

See strongloop/loopback-datasource-juggler#132
would be nice to clean up this dead code...