Fix 1878: Support other message wrappers in `ValidationMessage()`.