Fix bug in updating comparing undefined === null for whereKey/Val