Change `-[RLMRealm writeCopyToPath:]` to follow Cocoa's error handling conventions

No `!= NULL`.

I'm not a fan of the four duplicated lines of code per catch block but don't have any great ideas for how to factor them out. Maybe push the assignment to `error` into `make_realm_error` rather than returning the error so the check is in one place?