Added protection against empty lang attribute