[System.Xml.Linq] Add error checking to the XElement constructors