Fixed bug where a NPE could occur if ECSAttributeData was working with null elements.