Fix for empty attribute lists, which was throwing an error.