SERVER-13561 Improve wire API message validation