Fix parsing empty attributes