Fix RKObjectIsCollectionContainingOnlyManagedObjects function