Check null

See https://github.com/strongloop/loopback-datasource-juggler/issues/223