Added validity checks for collections of embedded messagees.