Fix an assertion failure in -[RLMRealm invalidate] when the Realm is not current in read mode
Merge pull request #1264 from realm/tg-invalidate

Fix an assertion failure in -[RLMRealm invalidate] when the Realm is not in read mode