Fixed Realm cache not working.
Merge pull request #572 from realm/cm-bugfix-realmcache

Fixed Realm cache not working