Fix adding right registrationId
Send error if the notification failed