Fix comparison for null/boolean values

/to @ritch

See strongloop/loopback-datasource-juggler#132