Fix updateAttributes impl

See https://github.com/strongloop/loopback-connector-mysql/issues/40