Fix bug in outgoing class - when provider is invalid or missing.