Added for loop to processing invalidRegistrationIds to match processing for newRegistrationIds