Prevent NRE when x.Attribute returns null