Fix comparison for null/boolean values

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