Fixes crash when running a unit test bundle while an app bundle runs.

objc_allocateClassPair returns nil if the class pair already exists.
Calling objc_registerClassPair with a nil argument causes an EXC_BAD_ACCESS.