Adding nil check to addObjects: and addOrUpdateObject: - fixes #2