MTLManagedObjectAdapter: Fix a bug where errors are silently handled

It was using `error` but this error is replaced later in the method and never passed as an error.

```objective-c
if (error != NULL) {
    *error = tmpError;
}
```