Fix exception when el has no attribs