Fixes local Core Data object deletion.

Added the successful status codes to deleteableStatusCodes index set. Check that self.error is equal to nil before deleting local object.