Suggested fix for realm/realm-cocoa#11880