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.
Merge pull request #311 from sinnerschrader-mobile/master

Fixes a crash when setting up a unit test environment